code: def get_translations(
      use_shape: bool,
      default_translate_abs: int,
      default_translate_rel: float,
      max_translate_abs: Optional[int] = None,
      max_translate_rel: Optional[float] = None,
  ):
      max_translate_height, max_translate_width = parse_validate_offset(
          use_shape,
          max_translate_abs=max_translate_abs,
          max_translate_rel=max_translate_rel,
          default_translate_abs=default_translate_abs,
          default_translate_rel=default_translate_rel,
      )
      if use_shape:
          translate_x = a.translate_x.augmentation(
              (0, max_translate_width), True
          )
          translate_y = a.translate_y.augmentation(
              (0, max_translate_height), True
          )
          return [translate_x, translate_y]
      else:
          translate_x = a.translate_x_no_shape.augmentation(
              (0, max_translate_width), True
          )
          translate_y = a.translate_y_no_shape.augmentation(
              (0, max_translate_height), True
          )
          return [translate_x, translate_y]
  
file_path: DALI/dali/python/nvidia/dali/auto_aug/core/_utils.py
imports: from typing import List, Optional
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.auto_aug.core._select import select
  from nvidia.dali.auto_aug.core._args import MissingArgException
  from nvidia.dali.auto_aug.core._augmentation import Augmentation
  import nvidia.dali.auto_aug.augmentations
label_desc: Use image node_id 3 for calling a global function with example usage: get_translations(use_shape, default_translate_abs, default_translate_rel, max_translate_abs, max_translate_rel) and returns: list, list