<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_expandvars(value):
 """Call os.path.expandvars if value is a string, otherwise do nothing. """

    if isinstance(value, six.string_types):
        return os.path.expandvars(value)
    return value