code: def __init__(
      self,
      typeName="ElementWiseOpType",
      typeString="{'avg', 'max', 'sum'}",
  ):
      self.name = typeName
      if typeString[0] == "{":  # is a enum type
          isEnum = True
          # parse enum
          self.enumValues = typeString[
              typeString.find("{") + 1 : typeString.find("}")
          ].split(",")
          for i in range(0, len(self.enumValues)):
              self.enumValues[i] = self.enumValues[i].strip().strip("'")
      else:
          logging.warn(
              f"trying to parse none-enum type as enum: {typeString}"
          )
  
imports: from ctypes import *
  from ctypes.util import find_library
  import os
  import logging
  import platform
  import re
  import sys
  import tempfile
  import filecmp
  import shutil
  import codecs
label_desc: Use image node_id 1 to create a new EnumType object  with example: obj = EnumType(typeName, typeString)