code: def parse_model(model_text: str) -> onnx.ModelProto:
      """Parse a string to build a ModelProto.
  
      Arguments:
          model_text (string): formatted string
      Returns:
          ModelProto
      """
      (success, msg, model_proto_str) = C.parse_model(model_text)
      if success:
          return onnx.load_from_string(model_proto_str)
      raise ParseError(msg)
  
file_path: catboost/contrib/libs/onnx/onnx/parser.py
imports: import onnx
  from onnx.onnx_cpp2py_export import parser
label_desc: Use image node_id 1 for calling a global function with example usage: parse_model(model_text) and returns: onnx