def match(cls, responses, targets) -> int:
        """Exact match between targets and responses."""
        if isinstance(responses, (list, tuple)):
            responses = {_convert_to_hashable(item) for item in responses}
        if isinstance(targets, (list, tuple)):
            targets = {_convert_to_hashable(item) for item in targets}
        return 1 if responses == targets else 0
Exact match between targets and responses.
vlmeval/dataset/utils/megabench/scoring/set_equality.py