<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getenv(key, value=None):
 """Like `os.getenv` but returns unicode under Windows + Python 2 Args: key (pathlike):
 The env var to get value (object):
 The value to return if the env var does not exist Returns: `fsnative` or `object`: The env var or the passed value if it doesn't exist """


    key = path2fsn(key)
    if is_win and PY2:
        return environ.get(key, value)
    return os.getenv(key, value)