def restore_builtins():
    if sys.version_info[0] == 2:
        __builtin__.file = original_file
    __builtin__.open = original_open
restore the original file and open to the builtin module
dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/restore_builtins