class_docstr: gh-8701 
class_docstr_tok: ["gh-8701"]
code: def _test_base(self, argsort, cls):
      arr_0d = np.array(1).view(cls)
      argsort(arr_0d)
  
      arr_1d = np.array([1, 2, 3]).view(cls)
      argsort(arr_1d)
  
      # argsort has a bad default for >1d arrays
      arr_2d = np.array([[1, 2], [3, 4]]).view(cls)
      result = assert_warns(
          np.ma.core.MaskedArrayFutureWarning, argsort, arr_2d
      )
      assert_equal(result, argsort(arr_2d, axis=None))
  
      # should be no warnings for explicitly specifying it
      argsort(arr_2d, axis=None)
      argsort(arr_2d, axis=-1)
  
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 TestArgsort obj's underlying member method code with example usage: obj._test_base(argsort, cls) without return types