code: def parse_function(function_text: str) -> onnx.FunctionProto:
      """Parse a string to build a FunctionProto.
  
      Arguments:
          function_text (string): formatted string
      Returns:
          FunctionProto
      """
      (success, msg, function_proto_str) = C.parse_function(
          function_text
      )
      if success:
          function_proto = onnx.FunctionProto()
          function_proto.ParseFromString(function_proto_str)
          return function_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 3 for calling a global function with example usage: parse_function(function_text) and returns: function_proto