code: def hex_to_rgb(value):
      """
      Change a hex color to an rgb tuple
  
      :param (str|unicode) value: The hex string we want to convert.
      :return: (int, int, int) The red, green, blue int-tuple.
  
      Example:
  
          '#FFFFFF' --> (255, 255, 255)
  
      """
      value = value.lstrip("#")
      lv = len(value)
      return tuple(
          int(value[i : i + lv // 3], 16) for i in range(0, lv, lv // 3)
      )
  
imports: import math
  import datetime
  import warnings
  import matplotlib.dates
label_desc: Use image node_id 6 for calling a global function with example usage: hex_to_rgb(value) and returns: tuple