class_docstr: Options for generating statistics.
class_docstr_tok: ["Options","for","generating","statistics","."]
code: def generators(
      self, generators: Optional[List[stats_generator.StatsGenerator]]
  ) -> None:
      if generators is not None:
          if not isinstance(generators, list):
              raise TypeError(
                  "generators is of type %s, should be a list."
                  % type(generators).__name__
              )
          for generator in generators:
              if not isinstance(
                  generator,
                  (
                      stats_generator.CombinerStatsGenerator,
                      stats_generator.TransformStatsGenerator,
                      stats_generator.CombinerFeatureStatsGenerator,
                  ),
              ):
                  raise TypeError(
                      "Statistics generator must extend one of "
                      "CombinerStatsGenerator, TransformStatsGenerator, or "
                      "CombinerFeatureStatsGenerator found object of type %s."
                      % generator.__class__.__name__
                  )
      self._generators = generators
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import json
  import logging
  import types
  from typing import Dict, List, Optional, Text, Union
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import stats_generator
  from tensorflow_data_validation.utils import example_weight_map
  from tensorflow_data_validation.utils import schema_util
  from tensorflow_data_validation.utils import slicing_util
  from tfx_bsl.arrow import sql_util
  from tfx_bsl.coders import example_coder
  from tfx_bsl.public.proto import slicing_spec_pb2
  from google.protobuf import json_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 6 for calling the StatsOptions obj's underlying member method code with example usage: obj.generators(generators) without return types