code: def test_negative_crop():
      # Check negative crop size (@PIL171)
  
      im = Image.new("L", (512, 512))
      im = im.crop((400, 400, 200, 200))
  
      assert im.size == (0, 0)
      assert len(im.getdata()) == 0
      with pytest.raises(IndexError):
          im.getdata()[0]
  
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 3 for calling a global function with example usage: test_negative_crop() without return types