code: def test_crop():
      def crop(mode):
          im = hopper(mode)
          assert_image_equal(im.crop(), im)
  
          cropped = im.crop((50, 50, 100, 100))
          assert cropped.mode == mode
          assert cropped.size == (50, 50)
  
      for mode in "1", "P", "L", "RGB", "I", "F":
          crop(mode)
  
file_path: pillow-simd/Tests/test_image_crop.py
imports: import pytest
  from PIL import Image
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_crop() without return types