code: def test_all(self, method):
      # a = np.random.normal(0, 1, (4, 5, 6, 7, 8))
      a = np.arange(4 * 5 * 6 * 7 * 8).reshape((4, 5, 6, 7, 8))
      arg_method = getattr(a, "arg" + method)
      val_method = getattr(a, method)
      for i in range(a.ndim):
          a_maxmin = val_method(i)
          aarg_maxmin = arg_method(i)
          axes = list(range(a.ndim))
          axes.remove(i)
          assert np.all(
              a_maxmin == aarg_maxmin.choose(*a.transpose(i, *axes))
          )
  
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 2 for calling the TestArgmaxArgminCommon obj's underlying member method code with example usage: obj.test_all(method) without return types