code: def cvt_enum(self, value):
      # Using get will call hash(value), which can be expensive
      # for some types (e.g. Fraction). Since self.enum is rarely
      # used, it's usually better to test it first.
      return self.enum.get(value, value) if self.enum else value
  
imports: from collections import namedtuple
label_desc: Use image node_id 2 for calling the TagInfo obj's underlying member method code with example usage: obj.cvt_enum(value) and returns: unknown