code: def invert(image):
      """
      Invert (negate) the image.
  
      :param image: The image to invert.
      :return: An image.
      """
      lut = list(range(255, -1, -1))
      return image.point(lut) if image.mode == "1" else _lut(image, lut)
  
imports: from __future__ import annotations
  import functools
  import operator
  import re
  from .None import ExifTags, Image, ImagePalette
label_desc: Use image node_id 17 for calling a global function with example usage: invert(image) and returns: unknown