class_docstr: An abstract simple type.
class_docstr_tok: ["An","abstract","simple","type","."]
docstr: Creates a type instance from system constants.
  
  Constructs an abstract system type based on 'type_name'. It loads simple
  type proto messages from simple_types_constants.cc and sets '_type'
  attribute based on 'type_name' parameter.
  
  Args:
    type_name: name of the desired system type.
  
  Raises:
    NOT_FOUND: if 'type_name' is not found in the pre-loaded simple type list;
    It also raises the corresponding error from wrapped LoadSimpleTypes util
    method.
docstr_tok: ["Creates","a","type","instance","from","system","constants",".","Constructs","an","abstract","system","type","based","on","'type_name","'",".","It","loads","simple","type","proto","messages","from","simple_types_constants.cc","and","sets","'_type'","attribute","based","on","'type_name","'","parameter",".","Args",":","type_name",":","name","of","the","desired","system","type",".","Raises",":","NOT_FOUND",":","if","'type_name","'","is","not","found","in","the","pre-loaded","simple","type","list",";","It","also","raises","the","corresponding","error","from","wrapped","LoadSimpleTypes","util","method","."]
code: def __init__(self, type_name: str):
      """Creates a type instance from system constants.
  
      Constructs an abstract system type based on 'type_name'. It loads simple
      type proto messages from simple_types_constants.cc and sets '_type'
      attribute based on 'type_name' parameter.
  
      Args:
        type_name: name of the desired system type.
  
      Raises:
        NOT_FOUND: if 'type_name' is not found in the pre-loaded simple type list;
        It also raises the corresponding error from wrapped LoadSimpleTypes util
        method.
      """
      [
          types_str,
          error_message,
          status_code,
      ] = metadata_store_serialized.LoadSimpleTypes()
      if status_code:
          raise _make_exception(
              error_message.decode("utf-8"), status_code
          )
      types = simple_types_pb2.SimpleTypes()
      types.ParseFromString(types_str)
      self._type = _get_type_proto(type_name, types)
  
imports: import abc
  from typing import Union
  from ml_metadata import errors
  from ml_metadata.metadata_store.pywrap.metadata_store_extension import metadata_store
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.simple_types.proto import simple_types_pb2
label_desc: Use image node_id 1 to create a new _SystemType object from inherited base classes: abc with example: obj = _SystemType(type_name)