code: def tile_image(plane, image_shape):
      """Tile a 2-D image `plane` into 3-D or 4-D as per `image_shape`."""
      assert 3 <= len(image_shape) <= 4
      plane = tf.convert_to_tensor(plane)
      plane = tf.expand_dims(plane, -1)
      channels = image_shape[-1]
      image = tf.tile(plane, (1, 1, channels))
  
      if len(image_shape) == 4:
          batch_size = image_shape[0]
          image = tf.expand_dims(image, 0)
          image = tf.tile(image, (batch_size, 1, 1, 1))
  
      return image
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.image import mean_filter2d
  from tensorflow_addons.image import median_filter2d
  from tensorflow_addons.image import gaussian_filter2d
  from tensorflow_addons.utils import test_utils
  from scipy.ndimage.filters import gaussian_filter
label_desc: Use image node_id 1 for calling a global function with example usage: tile_image(plane, image_shape) and returns: image