code: def testBrownianMotionMarkovChainLogprobMatchesOriginal(self):
      model = brownian_motion.BrownianMotionMissingMiddleObservations(
          use_markov_chain=False
      )
      markov_chain_model = (
          brownian_motion.BrownianMotionMissingMiddleObservations(
              use_markov_chain=True
          )
      )
  
      x = self.evaluate(
          model.prior_distribution().sample(
              400, seed=tfp_test_util.test_seed()
          )
      )
      self.assertAllClose(
          model.unnormalized_log_prob(x),
          markov_chain_model.unnormalized_log_prob(
              tf.stack(x, axis=-1)
          ),
          atol=1e-2,
      )
  
file_path: probability/spinoffs/inference_gym/inference_gym/targets/brownian_motion_test.py
imports: import functools
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from inference_gym.internal import test_util
  from inference_gym.targets import brownian_motion
label_desc: Use image node_id 7 for calling the BrownianMotionTest obj's underlying member method code with example usage: obj.testBrownianMotionMarkovChainLogprobMatchesOriginal() without return types