code: def test_given_simple_toy_data_when_using_MedianCDFQuantileScorer_then_returns_expected_scores():
      anomaly_scorer = MedianCDFQuantileScorer()
      anomaly_scorer.fit(np.array(range(0, 20)))
      assert anomaly_scorer.score(np.array([8, 17]))[0] == approx(
          1 - 17 / 20, abs=0.01
      )
      assert anomaly_scorer.score(np.array([0])) == approx(
          1 - 1 / 20, abs=0.01
      )
  
      anomaly_scorer.fit(np.array([4.0 for i in range(200)]))
      assert anomaly_scorer.score(np.array([4])) == approx(0, abs=0.01)
  
imports: import numpy
  from pytest import approx
  from dowhy.gcm import MedianCDFQuantileScorer, MedianDeviationScorer, RescaledMedianCDFQuantileScorer
label_desc: Use image node_id 1 for calling a global function with example usage: test_given_simple_toy_data_when_using_MedianCDFQuantileScorer_then_returns_expected_scores() without return types