def _clear_dict(in_dict):
    try:
        in_dict.clear()
    except __HOLE__:
        keys = list(in_dict)
        for key in keys:
            del in_dict[key]
dataset/ETHPy150Open sibson/vncdotool/tests/unit/mock.py/_clear_dict