class_docstr: A serializer-deserializer to and from in-memory Protocol Buffers representations.
class_docstr_tok: ["A","serializer-deserializer","to","and","from","in-memory","Protocol","Buffers","representations","."]
docstr: Serialize a in-memory proto to a serialized data type.
docstr_tok: ["Serialize","a","in-memory","proto","to","a","serialized","data","type","."]
code: def serialize_proto(self, proto: _Proto) -> Any:
      """Serialize a in-memory proto to a serialized data type."""
  
imports: from __future__ import annotations
  import warnings
  import typing
  from typing import Any, Collection, Optional, Protocol, TypeVar
  import google.protobuf.json_format
  import google.protobuf.message
  import google.protobuf.text_format
  import onnx
label_desc: Use image node_id 1 for calling the ProtoSerializer obj's underlying member method code with example usage: obj.serialize_proto(proto) without return types