code: def to_rgba(color, alpha):
      """
      Converts from hex|rgb to rgba
  
      Parameters:
      -----------
              color : string
                      Color representation on hex or rgb
              alpha : float
                      Value from 0 to 1.0 that represents the
                      alpha value.
  
      Example:
              to_rgba('#E1E5ED',0.6)
              to_rgba('#f03',0.7)
              to_rgba('rgb(23,23,23)',.5)
      """
      if type(color) == tuple:
          color, alpha = color
      color = color.lower()
      if "rgba" in color:
          cl = list(eval(color.replace("rgba", "")))
          if alpha:
              cl[3] = alpha
          return "rgba" + str(tuple(cl))
      elif "rgb" in color:
          r, g, b = eval(color.replace("rgb", ""))
          return "rgba" + str((r, g, b, alpha))
      else:
          return to_rgba(hex_to_rgb(color), alpha)
  
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 1 for calling a global function with example usage: to_rgba(color, alpha) and returns: unknown, unknown, to_rgba