code: def test_copy():
      croppedCoordinates = (10, 10, 20, 20)
      croppedSize = (10, 10)
      for mode in "1", "P", "L", "RGB", "I", "F":
          # Internal copy method
          im = hopper(mode)
          out = im.copy()
          assert out.mode == im.mode
          assert out.size == im.size
  
          # Python's copy method
          im = hopper(mode)
          out = copy.copy(im)
          assert out.mode == im.mode
          assert out.size == im.size
  
          # Internal copy method on a cropped image
          im = hopper(mode)
          out = im.crop(croppedCoordinates).copy()
          assert out.mode == im.mode
          assert out.size == croppedSize
  
          # Python's copy method on a cropped image
          im = hopper(mode)
          out = copy.copy(im.crop(croppedCoordinates))
          assert out.mode == im.mode
          assert out.size == croppedSize
  
imports: import copy
  from PIL import Image
  from .helper import hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_copy() without return types