code: def expand_to_beam_size(tensor, beam_size):
      """Tiles a given tensor by beam_size."""
      tensor = tf.expand_dims(tensor, axis=1)
      tile_dims = [1] * tensor.shape.ndims
      tile_dims[1] = beam_size
  
      return tf.tile(tensor, tile_dims)
  
file_path: delta/delta/layers/utils_tf.py
imports: import math
  import numpy
  import tensorflow
  from tensorflow.python.util import nest
label_desc: Use image node_id 5 for calling a global function with example usage: expand_to_beam_size(tensor, beam_size) and returns: tf