code: def __new__(cls, value, unit):
      # generate a new subclass for value
      value_class = type(value)
      try:
          subcls = type(
              f"TaggedValue_of_{value_class.__name__}",
              (cls, value_class),
              {},
          )
          return object.__new__(subcls)
      except TypeError:
          return object.__new__(cls)
  
imports: import math
  from packaging.version import parse
  import numpy
  import matplotlib.ticker
  import matplotlib.units
label_desc: Use image node_id 1 for calling the TaggedValue obj's underlying member method code with example usage: obj.__new__(cls, value, unit) and returns: object, object