class_docstr: An abstract class for splitting and writing protos that are > 2GB.
  
  See the README on how to use or subclass this class.
class_docstr_tok: ["An","abstract","class","for","splitting","and","writing","protos","that","are",">","2GB",".","See","the","README","on","how","to","use","or","subclass","this","class","."]
docstr: Serializes proto to disk.
  
  Args:
    file_prefix: string prefix of the filepath.
  
  Returns:
    The actual path the proto is written to.
docstr_tok: ["Serializes","proto","to","disk",".","Args",":","file_prefix",":","string","prefix","of","the","filepath",".","Returns",":","The","actual","path","the","proto","is","written","to","."]
code: def write(self, file_prefix: str) -> str:
      """Serializes proto to disk.
  
      Args:
        file_prefix: string prefix of the filepath.
  
      Returns:
        The actual path the proto is written to.
      """
  
imports: import abc
  from collections.abc import Sequence
  import time
  from typing import Optional, Union
  from absl import logging
  import riegeli
  from google.protobuf import message
  from tensorflow.python.lib.io import file_io
  from tensorflow.tools.proto_splitter import chunk_pb2
  from tensorflow.tools.proto_splitter import util
  from tensorflow.tools.proto_splitter import version
  from tensorflow.tools.proto_splitter import versions_pb2
label_desc: Use image node_id 3 for calling the Splitter obj's underlying member method code with example usage: obj.write(file_prefix) without return types