class_docstr: A stats generator meant to be used as a part of a composite generator.
  
  A constituent stats generator facilitates sharing logic between several stats
  generators. It is functionally identical to a beam.CombineFn, but it expects
  add_input to be called with instances of InputBatch.
docstr: Returns a compact representation of the accumulator.
  
  This is optionally called before an accumulator is sent across the wire. The
  base class is a no-op. This may be overwritten by the derived class.
  
  Args:
    accumulator: The accumulator to compact.
  
  Returns:
    The compacted accumulator.
docstr_tok: ["Returns","a","compact","representation","of","the","accumulator",".","This","is","optionally","called","before","an","accumulator","is","sent","across","the","wire",".","The","base","class","is","a","no-op",".","This","may","be","overwritten","by","the","derived","class",".","Args",":","accumulator",":","The","accumulator","to","compact",".","Returns",":","The","compacted","accumulator","."]
code: def compact(
      self, accumulator: CONSTITUENT_ACCTYPE
  ) -> CONSTITUENT_ACCTYPE:
      """Returns a compact representation of the accumulator.
  
      This is optionally called before an accumulator is sent across the wire. The
      base class is a no-op. This may be overwritten by the derived class.
  
      Args:
        accumulator: The accumulator to compact.
  
      Returns:
        The compacted accumulator.
      """
      return accumulator
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  from typing import Any, Dict, Generic, Hashable, Iterable, List, Optional, Text, TypeVar
  import apache_beam
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import input_batch
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 7 for calling the ConstituentStatsGenerator obj's underlying member method code with example usage: obj.compact(accumulator) and returns: accumulator