code: def _get_background(im, infoBackground):
      background = 0
      if infoBackground:
          background = infoBackground
          if isinstance(background, tuple):
              # WebPImagePlugin stores an RGBA value in info["background"]
              # So it must be converted to the same format as GifImagePlugin's
              # info["background"] - a global color table index
              background = im.palette.getcolor(background)
      return background
  
imports: import itertools
  from .None import Image, ImageChops, ImageFile, ImagePalette, ImageSequence
  from ._binary import i8, i16le, o8, o16le
label_desc: Use image node_id 15 for calling a global function with example usage: _get_background(im, infoBackground) and returns: background