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