def validate_source(self, attrs, source):
        if attrs in source:
            try:
                reverse("history", args=[attrs[source]])
            except NoReverseMatch:
                raise serializers.ValidationError("Source is invalid.")
        return attrs
dataset/ETHPy150Open lincolnloop/salmon/salmon/metrics/serializers.py/MetricSerializer.validate_source/swapped operands of `in`