parameters: (im)
return_statement: return (r, g, b)
docstring: Get the background RGB components. The most used color is assumed to be the
      background color.
docstring_summary: Get the background RGB components. The most used color is assumed to be the
      background color.
docstring_tokens: Get the background RGB components . The most used color is assumed to be the background color .
function: def getbackground_color(im):
      '''Get the background RGB components. The most used color is assumed to be the
      background color.'''
      # Get the most used color, we'll assume it is the background.
      _, background_color = im.getcolors()[-1]
      palette = im.getpalette()
      # Get the RGB components off the palette.
      r, g, b = palette[background_color * 3 : (background_color * 3) + 3]
      return (r, g, b)
function_tokens: def getbackground_color ( im ) : # Get the most used color, we'll assume it is the background. _ , background_color = im . getcolors ( ) [ - 1 ] palette = im . getpalette ( ) # Get the RGB components off the palette. r , g , b = palette [ background_color * 3 : ( background_color * 3 ) + 3 ] return ( r , g , b )