def point_distance(predicted: tuple[float, ...], target: tuple[float, ...]):
    """Return the distance between two points."""
    if len(predicted) != len(target):
        raise ValueError(
            "point_distance: Predicted and target points have different dimensions."
        )
    return math.sqrt(
        sum((comp_res - comp_tar) ** 2 for comp_res, comp_tar in zip(predicted, target))
    )
Return the distance between two points.
vlmeval/dataset/utils/megabench/scoring/common/metrics.py