<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extend_env(extra_env):
 """ Copies and extends the current environment with the values present in `extra_env`. """

    env = os.environ.copy()
    env.update(extra_env)
    return env