code: def parse_graph(graph_text: str) -> onnx.GraphProto:
      """Parse a string to build a GraphProto.
  
      Arguments:
          graph_text (string): formatted string
      Returns:
          GraphProto
      """
      (success, msg, graph_proto_str) = C.parse_graph(graph_text)
      if success:
          graph_proto = onnx.GraphProto()
          graph_proto.ParseFromString(graph_proto_str)
          return graph_proto
      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 2 for calling a global function with example usage: parse_graph(graph_text) and returns: graph_proto