def resolve(kwarg_dict):
    """
        Look for auth and url info in the kwargs.
        If they don't exist, look for a config file path and resolve auth & url info from it.
        If no config file path exists, try to load the config file from the default path.
        If this method returns without errors, the dictionary is guaranteed to contain:
        {
            "auth": ("username", "password"),
            "url": "PowerTrackUrl"
        }
    """
    conf = {}
    if "auth" in kwarg_dict:
        conf['auth'] = kwarg_dict['auth']

    if "url" in kwarg_dict:
        conf['url'] = kwarg_dict['url']

    if "auth" not in conf or "url" not in conf:
        if "config_file_path" in kwarg_dict:
            file_conf = get_config(config_file_path=kwarg_dict['config_file_path'])

        else:
            file_conf = get_config(config_file_path=get_default_config_file_path())

        if "auth" not in conf:
            creds = file_conf['Credentials']
            if creds['username'] and creds['password']:
                conf['auth'] = (creds['username'], creds['password'])
            else:
                raise IncompleteConfigurationException("Incomplete authentication information provided. Please provide"\
                                                       + " a username and password.")

        if conf not in "url":
            if file_conf['PowerTrack']['url']:
                conf['url'] = file_conf['PowerTrack']['url']
            else:
                raise IncompleteConfigurationException("Please provide a PowerTrack url.")

    return conf
dataset/ETHPy150Open twitterdev/twitter-for-bigquery/libs/gnippy/config.py/resolve/swapped operands of `not in`