code: def normalize(color):
      """
      Returns an hex color
  
      Parameters:
      -----------
              color : string
                      Color representation in rgba|rgb|hex
  
      Example:
              normalize('#f03')
      """
      if type(color) == tuple:
          color = to_rgba(*color)
      if "rgba" in color:
          return rgb_to_hex(rgba_to_rgb(color))
      elif "rgb" in color:
          return rgb_to_hex(color)
      elif "#" in color:
          if len(color) == 7:
              return color
          else:
              color = color[1:]
              return "#" + "".join([x * 2 for x in list(color)])
      else:
          try:
              return normalize(cnames[color.lower()])
          except:
              raise CufflinksError("Not a valid color: " + color)
  
imports: import numpy
  import colorsys
  import colorlover
  import operator
  import copy
  from collections import deque
  from six import string_types
  from IPython.display import HTML, display
  from .utils import inverseDict
  from .auth import get_config_file
label_desc: Use image node_id 3 for calling a global function with example usage: normalize(color) and returns: rgb_to_hex, rgb_to_hex, color, unknown, normalize