code: def to_hex(hexstring):
      """to_hex: generates matplotlib-compatible rgba values from html-style hex colours"""
      if hexstring[0] == "#":
          hexstring = hexstring[1:]
      red = int(hexstring[:2], 16)
      green = int(hexstring[2:4], 16)
      blue = int(hexstring[4:], 16)
      return rgba(red, green, blue, 1.0)
  
file_path: dragonfly/dragonfly/utils/plot_utils.py
imports: from __future__ import division
  import pickle
  import argparse
  import matplotlib.pyplot
  import matplotlib
  from scipy.io import loadmat
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: to_hex(hexstring) and returns: rgba