class_docstr: Run a set of generic tests to verify that self.func acts like a
  reduction operation.
  
  Specifically, this class checks axis=... and keepdims=... parameters.
  To check the out=... parameter, see the _GenericHasOutTestMixin class below.
  
  To use: subclass, define self.func and self.allowed_axes.
code: def test_array_axis(self, func):
      a = np.array([[0, 1, 7, 0, 0], [3, 0, 0, 2, 19]])
      assert_equal(func(a, axis=np.array(-1)), func(a, axis=-1))
  
      with assert_raises(TypeError):
          func(a, axis=np.array([1, 2]))
  
imports: from unittest import skipIf, SkipTest
  import numpy
  import pytest
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 2 for calling the TestGenericReductions obj's underlying member method code with example usage: obj.test_array_axis(func) without return types