class_docstr: Fake TransitionKernel for testing MetropolisHastings.
class_docstr_tok: ["Fake","TransitionKernel","for","testing","MetropolisHastings","."]
code: def __init__(
      self,
      is_calibrated,
      one_step_fn,
      bootstrap_fn,
      accepts_seed_arg=True,
  ):
      self._is_calibrated = is_calibrated
      self._one_step_fn = one_step_fn
      self._bootstrap_fn = bootstrap_fn
      self._call_count = collections.Counter()
      self._accepts_seed_arg = accepts_seed_arg
  
imports: import collections
  import warnings
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import kernel
  from tensorflow_probability.python.mcmc import metropolis_hastings
  from tensorflow_probability.python.mcmc.internal.util import is_list_like
label_desc: Use image node_id 1 to create a new FakeTransitionKernel object from inherited base classes: kernel with example: obj = FakeTransitionKernel(is_calibrated, one_step_fn, bootstrap_fn, accepts_seed_arg)