class_docstr: CombineFn wrapper which adds poisson resampling to input elements.
class_docstr_tok: ["CombineFn","wrapper","which","adds","poisson","resampling","to","input","elements","."]
code: def add_input(
      self, accumulator: _AccumulatorType, element: Any
  ) -> _AccumulatorType:
      for sampled_element in [element] * int(
          self._random_state.poisson(1, 1)
      ):
          accumulator = self._combine_fn.add_input(
              accumulator, sampled_element
          )
      return accumulator
  
file_path: model-analysis/tensorflow_model_analysis/evaluators/poisson_bootstrap.py
imports: from typing import Any, Optional, Set, Tuple, TypeVar
  import apache_beam
  import numpy
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.evaluators import confidence_intervals_util
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.slicer import slicer_lib
  from tensorflow_model_analysis.utils import beam_util
label_desc: Use image node_id 3 for calling the _BootstrapCombineFn obj's underlying member method code with example usage: obj.add_input(accumulator, element) and returns: accumulator