code: def test_emd_raises_exception():
      dist1 = np.ones(100)
      dist2 = np.zeros(100)
      assert_that(
          calling(earth_movers_distance).with_args(dist1, dist2, -1),
          raises(
              DeepchecksValueError,
              r"margin_quantile_filter expected a value in range \[0, 0.5\), instead got -1",
          ),
      )
  
imports: import numpy
  from hamcrest import assert_that, calling, close_to, equal_to, raises
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.distribution.drift import cramers_v, earth_movers_distance, kolmogorov_smirnov
label_desc: Use image node_id 5 for calling a global function with example usage: test_emd_raises_exception() without return types