code: def test_nested_state_dependent_reducers(self):
      fake_kernel = test_fixtures.TestTransitionKernel()
      nested_reducer = [
          [
              test_fixtures.NaiveMeanReducer(),
              test_fixtures.NaiveMeanReducer(),
          ],
          [test_fixtures.NaiveMeanReducer()],
      ]
      reducer_kernel = with_reductions.WithReductions(
          inner_kernel=fake_kernel,
          reducer=nested_reducer,
      )
      pkr = reducer_kernel.bootstrap_results(0.0)
      new_sample, kernel_results = reducer_kernel.one_step(0.0, pkr)
      new_sample, kernel_results = self.evaluate(
          [new_sample, kernel_results]
      )
  
      self.assertLen(kernel_results.reduction_results, 2)
      self.assertLen(kernel_results.reduction_results[0], 2)
      self.assertLen(kernel_results.reduction_results[1], 1)
  
      self.assertAllEqualNested(
          kernel_results.reduction_results,
          [[[1, 1], [1, 1]], [[1, 1]]],
      )
      self.assertEqual(1, new_sample)
      self.assertEqual(1, kernel_results.inner_results.counter_1)
      self.assertEqual(2, kernel_results.inner_results.counter_2)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import mvn_tril
  from tensorflow_probability.python.experimental.mcmc import covariance_reducer
  from tensorflow_probability.python.experimental.mcmc import step
  from tensorflow_probability.python.experimental.mcmc import with_reductions
  from tensorflow_probability.python.experimental.mcmc.internal import test_fixtures
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import sample
  from tensorflow_probability.python.mcmc import simple_step_size_adaptation
  from tensorflow_probability.python.mcmc import transformed_kernel
label_desc: Use image node_id 6 for calling the WithReductionsTest obj's underlying member method code with example usage: obj.test_nested_state_dependent_reducers() without return types