code: def _test_img_equals_nparray(img, np):
      assert len(np.shape) >= 2
      np_size = np.shape[1], np.shape[0]
      assert img.size == np_size
      px = img.load()
      for x in range(0, img.size[0], int(img.size[0] / 10)):
          for y in range(0, img.size[1], int(img.size[1] / 10)):
              assert_deep_equal(px[x, y], np[y, x])
  
file_path: pillow-simd/Tests/test_numpy.py
imports: import pytest
  from PIL import Image
  from .helper import assert_deep_equal, assert_image, hopper
label_desc: Use image node_id 4 for calling a global function with example usage: _test_img_equals_nparray(img, np) without return types