code: def adjust_transform_for_image(
      transform, image, relative_translation
  ):
      """Adjust a transformation for a specific image.
  
      The translation of the matrix will be scaled with the size of the image.
      The linear part of the transformation will adjusted so that the origin of the transformation will be at the center of the image.
      """
      height, width, channels = image.shape
  
      result = transform
  
      # Scale the translation with the image size if specified.
      if relative_translation:
          result[0:2, 2] *= [width, height]
  
      # Move the origin of transformation.
      result = change_transform_origin(
          transform, (0.5 * width, 0.5 * height)
      )
  
      return result
  
imports: from __future__ import division
  import numpy
  import cv2
  from PIL import Image
  from .transform import change_transform_origin
label_desc: Use image node_id 3 for calling a global function with example usage: adjust_transform_for_image(transform, image, relative_translation) and returns: result