def get_home_dir():
    home = os.getenv('HOME')
    if home is None:
        # This expanduser usually works on Windows (see discussion on
        # theano-users, July 13 2010).
        home = os.path.expanduser('~')
        if home == '~':
            # This might happen when expanduser fails. Although the cause of
            # failure is a mystery, it has been seen on some Windows system.
            home = os.getenv('USERPROFILE')
    assert home is not None
    return home


# On Windows we should avoid writing temporary files to a directory that is
# part of the roaming part of the user profile. Instead we use the local part
# of the user profile, when available.
Make the same API call repeatedly until we've seen every page
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/configdefaults.py/get_home_dir--crossover with--dataset/ETHPy150Open Yelp/mrjob/mrjob/iam.py/_repeat