def match(cls, responses, targets) -> int:
        """Exact match between targets and responses."""
        if not isinstance(responses, str):
            responses = str(responses)
        responses = str_to_list(responses)
        targets = str_to_list(targets)

        responses = [
            item.lower() if isinstance(item, str) else str(item) for item in responses
        ]
        targets = [item.lower() for item in targets]
        return 1 if responses == targets else 0
Exact match between targets and responses.
vlmeval/dataset/utils/megabench/scoring/sequence_equality.py