code: def where_left_justified_mask(mask, vals1, vals2, name=None):
      """Like `tf.where`, but broadcasts the `mask` left-justified."""
      with tf.name_scope(name or "where_left_justified_mask"):
          target_rank = ps.maximum(ps.rank(vals1), ps.rank(vals2))
          bcast_mask = left_justified_expand_dims_to(mask, target_rank)
          return tf.where(bcast_mask, vals1, vals2)
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 5 for calling a global function with example usage: where_left_justified_mask(mask, vals1, vals2, name) and returns: tf