code: def test_cache(self):
      assert_(
          ndpointer(dtype=np.float64) is ndpointer(dtype=np.float64)
      )
  
      # shapes are normalized
      assert_(ndpointer(shape=2) is ndpointer(shape=(2,)))
  
      # 1.12 <= v < 1.16 had a bug that made these fail
      assert_(ndpointer(shape=2) is not ndpointer(ndim=2))
      assert_(ndpointer(ndim=2) is not ndpointer(shape=2))
  
imports: import sys
  import sysconfig
  import weakref
  from pathlib import Path
  import pytest
  import numpy
  from numpy.ctypeslib import ndpointer, load_library, as_array
  from numpy.testing import assert_, assert_array_equal, assert_raises, assert_equal
label_desc: Use image node_id 5 for calling the TestNdpointer obj's underlying member method code with example usage: obj.test_cache() without return types