code: def test_hdmedian():
      # 1-D array
      x = ma.arange(11)
      assert_allclose(ms.hdmedian(x), 5, rtol=1e-14)
      x.mask = ma.make_mask(x)
      x.mask[:7] = False
      assert_allclose(ms.hdmedian(x), 3, rtol=1e-14)
  
      # Check that `var` keyword returns a value.  TODO: check whether returned
      # value is actually correct.
      assert_(ms.hdmedian(x, var=True).size == 2)
  
      # 2-D array
      x2 = ma.arange(22).reshape((11, 2))
      assert_allclose(ms.hdmedian(x2, axis=0), [10, 11])
      x2.mask = ma.make_mask(x2)
      x2.mask[:7, :] = False
      assert_allclose(ms.hdmedian(x2, axis=0), [6, 7])
  
file_path: catboost/contrib/python/scipy/py3/scipy/stats/tests/test_mstats_extras.py
imports: import numpy
  import numpy.ma
  import scipy.stats.mstats
  from numpy.testing import assert_equal, assert_almost_equal, assert_, assert_allclose
label_desc: Use image node_id 2 for calling a global function with example usage: test_hdmedian() without return types