code: def test_axis_default(self):
      # NumPy 1.13, 2017-05-06
  
      data1d = np.ma.arange(6)
      data2d = data1d.reshape(2, 3)
  
      ma_min = np.ma.minimum.reduce
      ma_max = np.ma.maximum.reduce
  
      # check that the default axis is still None, but warns on 2d arrays
      result = assert_warns(MaskedArrayFutureWarning, ma_max, data2d)
      assert_equal(result, ma_max(data2d, axis=None))
  
      result = assert_warns(MaskedArrayFutureWarning, ma_min, data2d)
      assert_equal(result, ma_min(data2d, axis=None))
  
      # no warnings on 1d, as both new and old defaults are equivalent
      result = ma_min(data1d)
      assert_equal(result, ma_min(data1d, axis=None))
      assert_equal(result, ma_min(data1d, axis=0))
  
      result = ma_max(data1d)
      assert_equal(result, ma_max(data1d, axis=None))
      assert_equal(result, ma_max(data1d, axis=0))
  
file_path: catboost/contrib/python/numpy/py3/numpy/ma/tests/test_deprecations.py
imports: import pytest
  import numpy
  from numpy.testing import assert_warns
  from numpy.ma.testutils import assert_equal
  from numpy.ma.core import MaskedArrayFutureWarning
  import io
  import textwrap
label_desc: Use image node_id 1 for calling the TestMinimumMaximum obj's underlying member method code with example usage: obj.test_axis_default() without return types