code: def translation_matrix(self, mat):
      assert isinstance(mat, np.ndarray)
      assert mat.shape == (4, 4)
      vec = transformations.translation_from_matrix(mat).astype(
          np.float32
      )
      self.translation_vector = vec
  
imports: import numpy
  from geometry import transformations
label_desc: Use image node_id 5 for calling the Translation obj's underlying member method code with example usage: obj.translation_matrix(mat) without return types