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 result of folding a batch of inputs into accumulator.
  
  Args:
    accumulator: The current accumulator.
    batch: An InputBatch which wraps an Arrow RecordBatch whose columns are
      features and rows are examples. The columns are of type List<primitive>
      or Null (If a feature's value is None across all the examples in the
      batch, its corresponding column is of Null type).
  
  Returns:
    The accumulator after updating the statistics for the batch of inputs.
docstr_tok: ["Returns","result","of","folding","a","batch","of","inputs","into","accumulator",".","Args",":","accumulator",":","The","current","accumulator",".","batch",":","An","InputBatch","which","wraps","an","Arrow","RecordBatch","whose","columns","are","features","and","rows","are","examples",".","The","columns","are","of","type","List","<","primitive",">","or","Null","(","If","a","feature","'s","value","is","None","across","all","the","examples","in","the","batch",",","its","corresponding","column","is","of","Null","type",")",".","Returns",":","The","accumulator","after","updating","the","statistics","for","the","batch","of","inputs","."]
code: def add_input(
      self,
      accumulator: CONSTITUENT_ACCTYPE,
      batch: input_batch.InputBatch,
  ) -> CONSTITUENT_ACCTYPE:
      """Returns result of folding a batch of inputs into accumulator.
  
      Args:
        accumulator: The current accumulator.
        batch: An InputBatch which wraps an Arrow RecordBatch whose columns are
          features and rows are examples. The columns are of type List<primitive>
          or Null (If a feature's value is None across all the examples in the
          batch, its corresponding column is of Null type).
  
      Returns:
        The accumulator after updating the statistics for the batch of inputs.
      """
  
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 5 for calling the ConstituentStatsGenerator obj's underlying member method code with example usage: obj.add_input(accumulator, batch) without return types