code: def Draw(im, mode=None):
      """
      A simple 2D drawing interface for PIL images.
  
      :param im: The image to draw in.
      :param mode: Optional mode to use for color values.  For RGB
         images, this argument can be RGB or RGBA (to blend the
         drawing into the image).  For all other modes, this argument
         must be the same as the image mode.  If omitted, the mode
         defaults to the mode of the image.
      """
      try:
          return im.getdraw(mode)
      except AttributeError:
          return ImageDraw(im, mode)
  
imports: import math
  import numbers
  from .None import Image, ImageColor
  from ._util import isStringType
label_desc: Use image node_id 1 for calling a global function with example usage: Draw(im, mode) and returns: im, ImageDraw