code: def test_nd(self):
      y1 = [[0, 0, 0], [0, 1, 0], [1, 1, 0]]
      assert np.any(y1)
      assert_equal(np.any(y1, axis=0), [1, 1, 0])
      assert_equal(np.any(y1, axis=1), [0, 1, 1])
      assert_equal(np.any(y1), True)
      assert isinstance(np.any(y1, axis=1), np.ndarray)
  
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 TestAny obj's underlying member method code with example usage: obj.test_nd() without return types