code: def test_basic(self):
      # Note: the docstrings for the argrel{min,max,extrema} functions
      # do not give a guarantee of the order of the indices, so we'll
      # sort them before testing.
  
      x = np.array(
          [
              [1, 2, 2, 3, 2],
              [2, 1, 2, 2, 3],
              [3, 2, 1, 2, 2],
              [2, 3, 2, 1, 2],
              [1, 2, 3, 2, 1],
          ]
      )
  
      row, col = argrelmax(x, axis=0)
      order = np.argsort(row)
      assert_equal(row[order], [1, 2, 3])
      assert_equal(col[order], [4, 0, 1])
  
      row, col = argrelmax(x, axis=1)
      order = np.argsort(row)
      assert_equal(row[order], [0, 3, 4])
      assert_equal(col[order], [3, 1, 2])
  
      row, col = argrelmin(x, axis=0)
      order = np.argsort(row)
      assert_equal(row[order], [1, 2, 3])
      assert_equal(col[order], [1, 2, 3])
  
      row, col = argrelmin(x, axis=1)
      order = np.argsort(row)
      assert_equal(row[order], [1, 2, 3])
      assert_equal(col[order], [1, 2, 3])
  
imports: import copy
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_array_equal
  import pytest
  from pytest import raises, warns
  from scipy.signal._peak_finding import argrelmax, argrelmin, peak_prominences, peak_widths, _unpack_condition_args, find_peaks, find_peaks_cwt, _identify_ridge_lines
  from scipy.signal.windows import gaussian
  from scipy.signal._peak_finding_utils import _local_maxima_1d, PeakPropertyWarning
label_desc: Use image node_id 2 for calling the TestArgrel obj's underlying member method code with example usage: obj.test_basic() without return types