class_docstr: Test the private method 'get_samples'.
code: def test_returns_z_if_z_provided(self):
      dist = normal.Normal(loc=0.0, scale=1.0)
      seed = test_util.test_seed()
      z = dist.sample(10, seed=seed)
      n = None
      z = _get_samples(dist, z, n, seed)
      self.assertEqual((10,), z.shape)
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bernoulli
  from tensorflow_probability.python.distributions import joint_distribution_named
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal.monte_carlo import _get_samples
  from tensorflow_probability.python.math import gradient
  from tensorflow_probability.python.monte_carlo import expectation
label_desc: Use image node_id 4 for calling the GetSamplesTest obj's underlying member method code with example usage: obj.test_returns_z_if_z_provided() without return types