def parse_2d_point(cls, point) -> tuple[float, float]:
        """Parse a 2D point encoded in XML as <point>x, y</point>."""
        if not isinstance(point, (tuple | list)):
            point = parse_point_2d_from_xml(point)
            if not point:
                raise ValueError("Point could not be parsed from XML string.")
        elif len(point) != 2:
            raise ValueError("Point is not 2D.")
        if not all(0 <= comp <= 1 for comp in point):
            raise ValueError("Point is not normalized.")
        return tuple(point)
Parse a 2D point encoded in XML as <point>x, y</point>.
vlmeval/dataset/utils/megabench/scoring/xml_norm_point_distance.py