code: def _try_broadcast_to(x, batch_shape):
      """Broadcasts batch shape of `x` to a `batch_shape` if possible."""
      broadcast_shape = tf.concat(
          [batch_shape, tf.shape(x)[-1:]], axis=0
      )
      return x + tf.zeros(broadcast_shape, dtype=x.dtype)
  
file_path: tf-quant-finance/tf_quant_finance/math/piecewise.py
imports: import tensorflow.compat.v2
label_desc: Use image node_id 5 for calling a global function with example usage: _try_broadcast_to(x, batch_shape) and returns: unknown