def setdefault(self, key, value=None):
        if key not in self:
            self[key] = value
        return self[key]
dataset/ETHPy150Open openstack/swift/swift/common/header_key_dict.py/HeaderKeyDict.setdefault/original