code: def test_random_scalar_computation(self):
      rng = test_util.test_np_rng()
      x = rng.rand(100, 10) * 100
      running_rhat = (
          sample_stats.RunningPotentialScaleReduction.from_shape(
              shape=(10,)
          )
      )
      running_rhat = consume(running_rhat, x)
      rhat = running_rhat.potential_scale_reduction()
      true_rhat = diagnostic.potential_scale_reduction(
          chains_states=x, independent_chain_ndims=1
      )
      true_rhat, rhat = self.evaluate([true_rhat, rhat])
      self.assertNear(true_rhat, rhat, err=1e-6)
  
imports: from absl.testing import parameterized
  import numpy
  import scipy.stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.stats import sample_stats
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import diagnostic
label_desc: Use image node_id 1 for calling the RunningPotentialScaleReductionTest obj's underlying member method code with example usage: obj.test_random_scalar_computation() without return types