code: def is_color_atomic(color):
      """
      Determine whether the argument is a singe color or an iterable of colors
      """
      if isinstance(color, string_types):
          is_atomic = True
      elif isinstance(color, collections.Sequence):
          if isinstance(color[0], string_types):
              is_atomic = False
          elif isinstance(color[0], (int, float)) and len(color) in (
              3,
              4,
          ):
              is_atomic = True
          else:
              is_atomic = False
      else:
          is_atomic = True
      return is_atomic
  
imports: import collections
  from six import string_types
label_desc: Use image node_id 3 for calling a global function with example usage: is_color_atomic(color) and returns: is_atomic