code: def decode_conjure_enum_type(cls, obj, conjure_type):
          
          if not (isinstance(obj, str) or str(type(obj)) == "<type 'unicode'>"):
              raise Exception(
                  'Expected to find str type but found {} instead'.format(
                      type(obj)))
  
          if obj in conjure_type.__members__:
              return conjure_type[obj]
  
          else:
              return conjure_type["UNKNOWN"]
docs: Decodes json into a conjure enum type.
  
          Args:
              obj: the json object to decode
              conjure_type: a class object which is the enum type
                  we're decoding into.
          Returns:
              An instance of enum of type conjure_type.