<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def after_scenario(context, scenario):
 """Leave the environment fresh after each scenario."""


    # Move back into the original working directory.
    os.chdir(context.old_cwd)

    # Delete all content generated by the test.
    context.directory.cleanup()