code: def _replicate_along_left(tensor, count):
      """Replicates `tensor` `count` times along a new leading axis.
  
      In other words, returns a Tensor of shape '[count] + tensor.shape`, with
      `count` copies of `tensor`.
  
      Args:
        tensor: Tensor to replicate.
        count: A scalar integer Tensor giving the number of times to replicate.
  
      Returns:
        result: Replicated Tensor.
      """
      # I am surpised that I can't seem to find this utility in the TF API.  tf.tile
      # is more general, but making it do this seems to require complicated shape
      # gymnastics.  tf.repeat repeats in place, hence this idiom:
      desired_shape = ps.concat([[count], ps.shape(tensor)], axis=0)
      return tf.broadcast_to(tensor[tf.newaxis, ...], desired_shape)
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import softmax_centered
  from tensorflow_probability.python.distributions import binomial
  from tensorflow_probability.python.distributions import categorical
  from tensorflow_probability.python.distributions import distribution
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math import generic
label_desc: Use image node_id 3 for calling a global function with example usage: _replicate_along_left(tensor, count) and returns: tf