code: def test_issue_1178():
      """
  
      https://github.com/online-ml/river/issues/1178
  
      >>> from river import stats
  
      >>> q = stats.Quantile(0.01)
      >>> for x in [5, 0, 0, 0, 0, 0, 0, 0]:
      ...     q.update(x)
      ...     print(q)
      Quantile: 5.
      Quantile: 0.
      Quantile: 0.
      Quantile: 0.
      Quantile: 0.
      Quantile: 0.
      Quantile: 0.
      Quantile: 0.
  
      >>> q = stats.Quantile(0.99)
      >>> for x in [5, 0, 0, 0, 0, 0, 0, 0]:
      ...     q.update(x)
      ...     print(q)
      Quantile: 5.
      Quantile: 5.
      Quantile: 5.
      Quantile: 5.
      Quantile: 5.
      Quantile: 0.
      Quantile: 0.277778
      Quantile: 0.827546
  
      """
  
imports: from __future__ import annotations
  import random
  from river import stats
label_desc: Use image node_id 1 for calling a global function with example usage: test_issue_1178() without return types