def tr_tet_tet_coord_test(x, y, z):
    """Test for coordinate in tretrahedron/truncated tetrahedron grid"""
    return x % 2 == 0 and y % 4 == (x + z) % 4 or y % 2 == 0 and z % 4 == (y +
        x) % 4 or z % 2 == 0 and x % 4 == (z + y) % 4
