class_docstr: API for writing serialized data statistics to a binary file.
class_docstr_tok: ["API","for","writing","serialized","data","statistics","to","a","binary","file","."]
docstr: Initializes the transform.
  
  Args:
    output_path: Output path for writing data statistics.
docstr_tok: ["Initializes","the","transform",".","Args",":","output_path",":","Output","path","for","writing","data","statistics","."]
code: def __init__(self, output_path: Text) -> None:
      """Initializes the transform.
  
      Args:
        output_path: Output path for writing data statistics.
      """
      self._output_path = output_path
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import random
  from typing import Generator, Text, Optional
  import apache_beam
  import pyarrow
  from tensorflow_data_validation.utils import artifacts_io_impl
  from tensorflow_data_validation.statistics import stats_impl
  from tensorflow_data_validation.statistics import stats_options
  from tfx_bsl.statistics import merge_util
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 1 to create a new WriteStatisticsToBinaryFile object from inherited base classes: beam with example: obj = WriteStatisticsToBinaryFile(output_path)