class_docstr: Serialize and deserialize the ONNX textual representation.
class_docstr_tok: ["Serialize","and","deserialize","the","ONNX","textual","representation","."]
code: def serialize_proto(self, proto) -> bytes:
      text = onnx.printer.to_text(proto)
      return text.encode("utf-8")
  
file_path: onnx/onnx/test/serialization_test.py
imports: import os
  import tempfile
  import unittest
  import onnx
label_desc: Use image node_id 1 for calling the _OnnxTestTextualSerializer obj's underlying member method code with example usage: obj.serialize_proto(proto) and returns: text