def match(cls, responses, targets) -> float:
        """Return the aggregated Jaccard index between targets and responses."""
        responses = cast_to_dict(responses)
        targets = cast_to_dict(targets)

        if not isinstance(responses, dict):
            return 0

        return 1 if responses == targets else 0
Return the aggregated Jaccard index between targets and responses.
vlmeval/dataset/utils/megabench/scoring/dict_equality.py