code: def parse_proto_file(
      path: Union[str, Path], proto: Message
  ) -> Message:
      """Parses a message from a proto file and returns the proto.
  
      Args:
        path: The file path to parse the proto from.
        proto: The proto to parse into.
  
      Raises:
        FileNotFoundError: If the file does not exist.
      """
      if not os.path.exists(path):
          raise FileNotFoundError(f"File {path} does not exist.")
  
      with open(path, "rb") as f:
          proto.ParseFromString(f.read())
      return proto
  
file_path: model-card-toolkit/model_card_toolkit/utils/io_utils.py
imports: import os
  from pathlib import Path
  from typing import Union
  from google.protobuf.message import Message
label_desc: Use image node_id 5 for calling a global function with example usage: parse_proto_file(path, proto) and returns: proto