code: def translate(offset, dtype=None):
      
      assert len(offset) == 3
      x, y, z = offset
      M = np.array([[1., 0., 0., 0.],
                   [0., 1., 0., 0.],
                   [0., 0., 1., 0.],
                   [x, y, z, 1.0]], dtype)
      return M
docs: Translate by an offset (x, y, z) .
  
      Parameters
      ----------
      offset : array-like, shape (3,)
          Translation in x, y, z.
      dtype : dtype | None
          Output type (if None, don't cast).
  
      Returns
      -------
      M : ndarray
          Transformation matrix describing the translation.