class_docstr: Translate each image randomly in vertical and horizontal directions
  up to specified number of pixels.
  
  Parameters
  ----------
  padding : int
      Max number of pixels to translate in any direction.
  fill : tuple
      An RGB color ((0, 0, 0) by default) to fill the area outside the shifted image.
class_docstr_tok: ["Translate","each","image","randomly","in","vertical","and","horizontal","directions","up","to","specified","number","of","pixels",".","Parameters","--","--","--","--","--","padding",":","int","Max","number","of","pixels","to","translate","in","any","direction",".","fill",":","tuple","An","RGB","color","(","(","0",",","0",",","0",")","by","default",")","to","fill","the","area","outside","the","shifted","image","."]
code: def __init__(
      self, padding: int, fill: Tuple[int, int, int] = (0, 0, 0)
  ):
      super().__init__()
      self.padding = padding
      self.fill = np.array(fill)
  
file_path: ffcv/ffcv/transforms/translate.py
imports: import numpy
  from numpy.random import randint
  from typing import Callable, Optional, Tuple
  from dataclasses import replace
  from ..pipeline.allocation_query import AllocationQuery
  from ..pipeline.operation import Operation
  from ..pipeline.state import State
  from ..pipeline.compiler import Compiler
label_desc: Use image node_id 1 to create a new RandomTranslate object from inherited base classes: Operation with example: obj = RandomTranslate(padding, fill)