code: def crop(image, border=0):
      """
      Remove border from image.  The same amount of pixels are removed
      from all four sides.  This function works on all image modes.
  
      .. seealso:: :py:meth:`~PIL.Image.Image.crop`
  
      :param image: The image to crop.
      :param border: The number of pixels to remove.
      :return: An image.
      """
      left, top, right, bottom = _border(border)
      return image.crop(
          (left, top, image.size[0] - right, image.size[1] - bottom)
      )
  
imports: from __future__ import annotations
  import functools
  import operator
  import re
  from .None import ExifTags, Image, ImagePalette
label_desc: Use image node_id 9 for calling a global function with example usage: crop(image, border) and returns: image