code: def testCorrelatedMVNOneStep(self):
      # Assert that we get a diversity of leapfrogs taken after one step
      kernel = self._correlated_mvn_nuts(
          dim=10, step_size=0.1, num_steps=1
      )
      _, extra_ = sample.sample_chain(
          num_results=1,
          num_burnin_steps=0,
          current_state=[tf.zeros([30, 10])],
          kernel=kernel,
          parallel_iterations=1,
      )
      extra = self.evaluate(extra_)
      self.assertLess(extra.leapfrogs_taken.min(), 25)
      self.assertGreater(extra.leapfrogs_taken.max(), 40)
      # Also sanity-check that leapfrogs_computed is computed consistently
      for t, c in zip(
          extra.leapfrogs_taken[-1], extra.leapfrogs_computed[-1]
      ):
          self.assertLessEqual(t, c)
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.bijectors import scale_matvec_tril
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.bijectors import sigmoid
  from tensorflow_probability.python.distributions import beta
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import transformed_distribution
  from tensorflow_probability.python.distributions import wishart
  from tensorflow_probability.python.distributions.internal import statistical_testing
  from tensorflow_probability.python.experimental.auto_batching import instructions
  from tensorflow_probability.python.experimental.mcmc import nuts_autobatching
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import sample
label_desc: Use image node_id 14 for calling the NutsTest obj's underlying member method code with example usage: obj.testCorrelatedMVNOneStep() without return types