code: def _color(color, mode):
      if isStringType(color):
          from . import ImageColor
  
          color = ImageColor.getcolor(color, mode)
      return color
  
imports: import functools
  import operator
  from .None import Image
  from ._util import isStringType
label_desc: Use image node_id 2 for calling a global function with example usage: _color(color, mode) and returns: color