

def deepcopy(obj):
    if (isinstance(obj, defaultdict) or isinstance(obj, dict)):
        obj_copy = defaultdict(list)
        for (key, value) in obj.items():
            obj_copy[key] = deepcopy(value)
        return obj_copy
    else:
        return copy.deepcopy(obj)

dataset/ETHPy150Open owtf/owtf/tests/testing_framework/config/config_state.py deepcopy/original