def METHOD_NAME(
    edge: List[List[float]], img_center: Tuple[float, float]
) -> bool:
    """Check whether both ends of the edges is inside the picture."""
    return (
        (0 >= edge[0][0] or edge[0][0] >= img_center[0] * 2 - 1)
        or (0 >= edge[0][1] or edge[0][1] >= img_center[1] * 2 - 1)
    ) and (
        (0 >= edge[1][0] or edge[1][0] >= img_center[0] * 2 - 1)
        or (0 >= edge[1][1] or edge[1][1] >= img_center[1] * 2 - 1)
    )