def terminal_supports_colors(stream=None):
    return (sys.platform != 'Pocket PC' and
            (sys.platform != 'win32' or 'ANSICON' in os.environ) and
            connected_to_terminal(stream))
API requests that attempt to authenticate with nonexistent AccessTokens
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/terminal.py/terminal_supports_colors--crossover with--dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/TestOAuthScopeEndpointDecorator.test_nonexistent_access_token_fails