code: def left_justified_expand_dims_like(x, reference, name=None):
      """Right pads `x` with `rank(reference) - rank(x)` ones."""
      with tf.name_scope(name or "left_justified_expand_dims_like"):
          return left_justified_expand_dims_to(x, ps.rank(reference))
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 1 for calling a global function with example usage: left_justified_expand_dims_like(x, reference, name) and returns: left_justified_expand_dims_to