class_docstr: Run a set of generic tests to verify that cumsum/cumprod are sane.
code: def test_axis_empty_generic(self, func):
      a = np.array([[0, 0, 1], [1, 0, 1]])
      assert_array_equal(func(a, axis=None), func(a.ravel(), axis=0))
  
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 3 for calling the TestGenericCumSumProd obj's underlying member method code with example usage: obj.test_axis_empty_generic(func) without return types