code: def translation(translation):
      """Construct a homogeneous 2D translation matrix.
      # Arguments
          translation: the translation 2D vector
      # Returns
          the translation matrix as 3 by 3 numpy array
      """
      return np.array(
          [[1, 0, translation[0]], [0, 1, translation[1]], [0, 0, 1]]
      )
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/utils/transform.py
imports: import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: translation(translation) and returns: np