code: def translate(translationAmt):
          
          if not isinstance(translationAmt, Vector3):
              raise ValueError("translationAmt must be a Vector3")
  
          ma4 = Matrix4((1, 0, 0, translationAmt.x),
                        (0, 1, 0, translationAmt.y),
                        (0, 0, 1, translationAmt.z),
                        (0, 0, 0, 1))
          return ma4
docs: Create a translation matrix.