def l2_dist_sq(p1: tuple, p2: tuple) -> float:
    """
    Compute squared L2 distance between p1 and p2
    :param p1: Point 1 in the form (x, y)
    :param p2: Point 2 in the form (x, y)
    :return: Squared L2 distance
    """
    assert len(p1) == 2
    assert len(p2) == 2
    dx = p1[0] - p2[0]
    dy = p1[1] - p2[1]
    return dx ** 2 + dy ** 2