code: def _expand_to_minibatch(
      array: TensorLike, batch_size: TensorLike
  ) -> TensorLike:
      """Tile arbitrarily-sized array to include new batch dimension."""
      batch_size = tf.expand_dims(batch_size, 0)
      array_ones = tf.ones((tf.rank(array)), dtype=tf.dtypes.int32)
      tiles = tf.concat([batch_size, array_ones], axis=0)
      return tf.tile(tf.expand_dims(array, 0), tiles)
  
file_path: addons/tensorflow_addons/image/sparse_image_warp.py
imports: import tensorflow
  from tensorflow_addons.image import dense_image_warp
  from tensorflow_addons.image import interpolate_spline
  from tensorflow_addons.image import utils
  from tensorflow_addons.utils.types import TensorLike, FloatTensorLike
label_desc: Use image node_id 2 for calling a global function with example usage: _expand_to_minibatch(array, batch_size) and returns: tf