<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_file(path, remove=os.remove, exists=os.path.exists):
 """Remove file, and raise OSError if still exists."""

    try:
        remove(path)
    except OSError:
        if exists(path):
            raise