code: def hex_to_rgba(h, alpha):
      """Convert color value in hex format to rgba format with alpha transparency."""
      return "rgba" + str(
          tuple(
              [int(h.lstrip("#")[i : i + 2], 16) for i in (0, 2, 4)]
              + [alpha]
          )
      )
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.cm import ScalarMappable
  from matplotlib.colors import LinearSegmentedColormap
label_desc: Use image node_id 3 for calling a global function with example usage: hex_to_rgba(h, alpha) and returns: unknown