def in_3d_box(box, coords):
    """
    Check if point is in a box

    Args:
      box (tuple): ((x0, x1), (y0, y1), (z0, z1)).
      coords (tuple): (x, y, z).

    Returns
      bool
    """
    cx = coords[0] >= box[0][0] and coords[0] <= box[0][1]
    cy = coords[1] >= box[1][0] and coords[1] <= box[1][1]
    cz = coords[2] >= box[2][0] and coords[2] <= box[2][1]
    return cx and cy and cz