def _verify_config(self):

        fail_message = None
        try:
            api_client = RestApiClient.RestApiClient(config=self)

            # Only request the /help categories to limit the size of the
            # response.
            params = {'categories': "['/help']"}
            response = api_client.call_api('/help/capabilities', 'GET',
                                           params=params)
            response.read()
            if response.code == 401 or response.code == 403:
                fail_message = "Authorization failed."
            elif response.code < 200 or response.code > 299:
                response_json = json.loads(response.read().decode('utf-8'))
                fail_message = response_json['http_response']['message']
                fail_message += "\n" + response_json['message']
        except Exception as e:
            fail_message = str(e)

        if fail_message is not None:
            print("Configuration validation failed.")
            print(fail_message)
            print("Check your settings.")
            sys.exit(2)
:param url: Remote URL for the file
dataset/ETHPy150Open ibm-security-intelligence/api-samples/modules/config.py/Config._verify_config--crossover with--dataset/ETHPy150Open CartoDB/cartodb-python/cartodb/imports.py/URLImport.__init__