code: def test_given_numpy_arrays_with_object_type_when_using_median_quantile_scorer_then_does_not_raise_error():
      training_data = np.array(
          [1, 2, 3, 4, 5, 6, 7, 8, np.nan, np.nan], dtype=object
      )
  
      scorer = RescaledMedianCDFQuantileScorer()
      scorer.fit(training_data)
  
      assert scorer.score(
          np.array([1, 4, 8, np.nan], dtype=object)
      ) == approx(
          [
              -np.log(2 * 0.5 / 10),
              -np.log(2 * 3.5 / 10),
              -np.log(2 * 0.5 / 10),
              -np.log(2 * 1 / 10),
          ]
      )
  
imports: import numpy
  from pytest import approx
  from dowhy.gcm import MedianCDFQuantileScorer, MedianDeviationScorer, RescaledMedianCDFQuantileScorer
label_desc: Use image node_id 4 for calling a global function with example usage: test_given_numpy_arrays_with_object_type_when_using_median_quantile_scorer_then_does_not_raise_error() without return types