docs: def _get_enum(name):
      """Get an existing enum ID"""
      eid = idaapi.get_enum(name)
      if eid == idaapi.BADADDR:
          raise exceptions.EnumNotFound('Enum "{}" does not exist.'.format(name))
      return eid