def METHOD_NAME(x: float, y: float, z: float = 0) -> np.ndarray:
    """Return a new translation matrix.
    :param x: translation in the x-direction.
    :param y: translation in the y-direction.
    :param z: translation in the z-direction.
    :returns: A transform matrix with the given translation applied to
        it
    """
    translate_matrix = np.identity(4)
    translate_matrix[0, -1] = x
    translate_matrix[1, -1] = y
    translate_matrix[2, -1] = z
    return translate_matrix