code: def fromHex(cls, value):
      if value[0] == "#":
          value = value[1:]
      red = int(value[0:2], 16)
      green = int(value[2:4], 16)
      blue = int(value[4:6], 16)
      alpha = int(value[6:8], 16) if len(value) >= 8 else 0xFF
      return cls(red=red, green=green, blue=blue, alpha=alpha)
  
imports: from fontTools.misc.textTools import bytesjoin, safeEval
  from .None import DefaultTable
  import array
  from collections import namedtuple
  import struct
  import sys
label_desc: Use image node_id 4 for calling the Color obj's underlying member method code with example usage: obj.fromHex(cls, value) and returns: cls