code: def expand(image, border=0, fill=0):
      """
      Add border to the image
  
      :param image: The image to expand.
      :param border: Border width, in pixels.
      :param fill: Pixel fill value (a color value).  Default is 0 (black).
      :return: An image.
      """
      left, top, right, bottom = _border(border)
      width = left + image.size[0] + right
      height = top + image.size[1] + bottom
      color = _color(fill, image.mode)
      if image.palette:
          palette = ImagePalette.ImagePalette(
              palette=image.getpalette()
          )
          if isinstance(color, tuple):
              color = palette.getcolor(color)
      else:
          palette = None
      out = Image.new(image.mode, (width, height), color)
      if palette:
          out.putpalette(palette.palette)
      out.paste(image, (left, top))
      return out
  
imports: from __future__ import annotations
  import functools
  import operator
  import re
  from .None import ExifTags, Image, ImagePalette
label_desc: Use image node_id 13 for calling a global function with example usage: expand(image, border, fill) and returns: out