def match(cls, responses, targets) -> int:
        """Exact match between targets and responses."""
        try:
            responses: set[str] = {text.upper() for text in cast_to_set(responses)}
            targets: set[str] = {text.upper() for text in cast_to_set(targets)}
        except AttributeError:
            return 0
        return 1 if responses == targets else 0
Exact match between targets and responses.
vlmeval/dataset/utils/megabench/scoring/set_equality.py