code: def test_ndim_array_function(self):
      a = cupy.ones((4, 4))
      assert numpy.ndim(a) == 2
  
      a = cupy.asarray(5)
      assert numpy.ndim(a) == 0
  
      a = numpy.ones((4, 4))
      assert cupy.ndim(a) == 2
  
      a = numpy.asarray(5)
      assert cupy.ndim(a) == 0
  
file_path: cupy/tests/cupy_tests/test_ndim.py
imports: import numpy
  import unittest
  import cupy
  from cupy import testing
label_desc: Use image node_id 12 for calling the TestNdim obj's underlying member method code with example usage: obj.test_ndim_array_function() without return types