class_docstr: Translation is equivalent to the matrix [1 0 0 1 tx ty], where tx and ty
  are the distances to translate coordinates in X and Y, respectively.
class_docstr_tok: ["Translation","is","equivalent","to","the","matrix","[","1","0","0","1","tx","ty","]",",","where","tx","and","ty","are","the","distances","to","translate","coordinates","in","X","and","Y",",","respectively","."]
code: def __init__(self, x, y=0):
      Matrix.__init__(self)
      self._x, self._y = x, y
      self._matrix[...] = [[1, 0, x], [0, 1, y], [0, 0, 1]]
  
imports: import re
  import math
  import numpy
label_desc: Use image node_id 1 to create a new Translate object from inherited base classes: Matrix with example: obj = Translate(x, y)