code: def test_spy_ndarray(self):
      orig = cupy.ndarray
      with testing.AssertFunctionIsCalled(
          "cupy.ndarray", wraps=cupy.ndarray
      ):
          a = cupy.ndarray((2, 3), numpy.float32)
      assert cupy.ndarray is orig
      assert isinstance(a, cupy.ndarray)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestAssertFunctionIsCalled obj's underlying member method code with example usage: obj.test_spy_ndarray() without return types