code: def test_idealfourths():
      # Tests ideal-fourths
      test = np.arange(100)
      assert_almost_equal(
          np.asarray(ms.idealfourths(test)), [24.416667, 74.583333], 6
      )
      test_2D = test.repeat(3).reshape(-1, 3)
      assert_almost_equal(
          ms.idealfourths(test_2D, axis=0),
          [
              [24.416667, 24.416667, 24.416667],
              [74.583333, 74.583333, 74.583333],
          ],
          6,
      )
      assert_almost_equal(
          ms.idealfourths(test_2D, axis=1),
          test.repeat(2).reshape(-1, 2),
      )
      test = [0, 0]
      _result = ms.idealfourths(test)
      assert_(np.isnan(_result).all())
  
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 6 for calling a global function with example usage: test_idealfourths() without return types