code: def test_tensor_no_burnin(self):
      fake_inner_kernel = test_fixtures.TestTransitionKernel()
      discarder = sample_discarding_kernel.SampleDiscardingKernel(
          fake_inner_kernel,
          num_burnin_steps=tf.convert_to_tensor(0),
          num_steps_between_results=tf.convert_to_tensor(1),
      )
  
      def _loop_body(i, seed, curr_state, pkr):
          mcmc_seed, seed = samplers.split_seed(seed)
          new_state, kernel_results = discarder.one_step(
              curr_state,
              pkr,
              seed=mcmc_seed,
          )
          return (i + 1, seed, new_state, kernel_results)
  
      pkr = discarder.bootstrap_results(0.0)
      _, _, final_sample, kernel_results = tf.while_loop(
          lambda i, *_: i < 2,
          _loop_body,
          (
              0.0,
              test_util.test_seed(sampler_type="stateless"),
              0.0,
              pkr,
          ),
      )
      final_sample, kernel_results = self.evaluate(
          [final_sample, kernel_results]
      )
      self.assertEqual(4, final_sample)
      self.assertEqual(2, kernel_results.call_counter)
      self.assertEqual(4, kernel_results.inner_results.counter_1)
      self.assertEqual(8, kernel_results.inner_results.counter_2)
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.mcmc import covariance_reducer
  from tensorflow_probability.python.experimental.mcmc import sample_discarding_kernel
  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 samplers
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 11 for calling the SampleDiscardingTest obj's underlying member method code with example usage: obj.test_tensor_no_burnin() and returns: unknown,  seed,  new_state,  kernel_results