code: def test_np_vs_ndarray(self, arr_method, np_method):
      # make sure both ndarray.argmax/argmin and
      # numpy.argmax/argmin support out/axis args
      # a = np.random.normal(size=(2, 3))
      a = np.arange(6).reshape((2, 3))
      arg_method = getattr(a, arr_method)
  
      # check keyword args
      out1 = np.zeros(3, dtype=int)
      out2 = np.zeros(3, dtype=int)
      assert_equal(
          arg_method(out=out1, axis=0), np_method(a, out=out2, axis=0)
      )
      assert_equal(out1, out2)
  
imports: import itertools
  from unittest import expectedFailure, skipIf
  import numpy
  import pytest
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, skipIfTorchDynamo, subtest, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 5 for calling the TestArgmaxArgminCommon obj's underlying member method code with example usage: obj.test_np_vs_ndarray(arr_method, np_method) without return types