code: def get_proto_list(packet: mp_packet.Packet) -> List[message.Message]:
      """Get the content of a MediaPipe proto vector Packet as a proto message list.
  
      Args:
        packet: A MediaPipe proto vector Packet.
  
      Returns:
        A proto message list.
  
      Raises:
        TypeError: If the message descriptor can't be found by type name.
  
      Examples:
        proto_list = mp.packet_getter.get_proto_list(protos_packet)
      """
      # pylint:disable=protected-access
      vector_size = _packet_getter._get_proto_vector_size(packet)
      # pylint:enable=protected-access
      # Return empty list if the proto vector is empty.
      if vector_size == 0:
          return []
  
      # pylint:disable=protected-access
      proto_type_name = (
          _packet_getter._get_proto_vector_element_type_name(packet)
      )
      # pylint:enable=protected-access
      try:
          descriptor = (
              symbol_database.Default().pool.FindMessageTypeByName(
                  proto_type_name
              )
          )
      except KeyError:
          raise TypeError(
              "Can not find message descriptor by type name: %s"
              % proto_type_name
          )
      message_class = symbol_database.Default().GetPrototype(descriptor)
      # pylint:disable=protected-access
      serialized_protos = _packet_getter._get_serialized_proto_list(
          packet
      )
      # pylint:enable=protected-access
      proto_message_list = []
      for serialized_proto in serialized_protos:
          proto_message = message_class()
          proto_message.ParseFromString(serialized_proto)
          proto_message_list.append(proto_message)
      return proto_message_list
  
imports: from typing import List
  from google.protobuf import message
  from google.protobuf import symbol_database
  from mediapipe.python._framework_bindings import _packet_getter
  from mediapipe.python._framework_bindings import packet
label_desc: Use image node_id 2 for calling a global function with example usage: get_proto_list(packet) and returns: proto_message_list, list