code: def test_given_simple_toy_data_when_using_MedianDeviationScorer_then_returns_expected_scores():
      anomaly_scorer = MedianDeviationScorer()
      anomaly_scorer.fit(np.array(range(0, 20)) / 10)
      assert anomaly_scorer.score(np.array([0.8, 1.7])).reshape(
          -1
      ) == approx(np.array([0.2, 1]), abs=0.1)
  
imports: import numpy
  from pytest import approx
  from dowhy.gcm import MedianCDFQuantileScorer, MedianDeviationScorer, RescaledMedianCDFQuantileScorer
label_desc: Use image node_id 2 for calling a global function with example usage: test_given_simple_toy_data_when_using_MedianDeviationScorer_then_returns_expected_scores() without return types