code: def translate_xy(
      image: TensorLike, translate_to: TensorLike, replace: TensorLike
  ) -> TensorLike:
      """Translates image in X or Y dimension.
  
      Args:
          image: A 3D image `Tensor`.
          translate_to: A 1D `Tensor` to translate `[x, y]`.
          replace: A one or three value 1D `Tensor` to fill empty pixels.
      Returns:
          Translated image along X or Y axis, with space outside image
              filled with replace.
      Raises:
          ValueError: if axis is neither 0 nor 1.
      """
      image = tf.convert_to_tensor(image)
      image = wrap(image)
      trans = tf.convert_to_tensor(translate_to)
      image = translate(image, [trans[0], trans[1]])
      return unwrap(image, replace)
  
file_path: addons/tensorflow_addons/image/translate_ops.py
imports: import tensorflow
  from tensorflow_addons.image.transform_ops import transform
  from tensorflow_addons.image.utils import wrap, unwrap
  from tensorflow_addons.utils.types import TensorLike
  from typing import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: translate_xy(image, translate_to, replace) and returns: unwrap