code: def __format__(self, format_spec):
      # mixed-in Enums should use the mixed-in type's __format__, otherwise
      # we can get strange results with the Enum name showing up instead of
      # the value
  
      # pure Enum branch
      if self._member_type_ is object:
          cls = str
          val = str(self)
      # mix-in branch
      else:
          cls = self._member_type_
          val = self.value
      return cls.__format__(val, format_spec)
  
imports: import sys
label_desc: Use image node_id 8 for calling a global function with example usage: __format__(format_spec) and returns: cls