def pop(self, key, *arg):
        if key in self:
            l = super().pop(key)
            return l[0] if len(l) == 1 else l
        else:
            return super().pop(key, *arg)
dataset/ETHPy150Open quantmind/pulsar/pulsar/utils/structures/misc.py/MultiValueDict.pop/original