def METHOD_NAME(self, logger, config) -> Tuple[bool, any]:
    """
    :param config:  the user-input config object conforming to the connector's spec.yaml
    :param logger:  logger object
    :return Tuple[bool, any]: (True, None) if the input config can be used to connect to the API successfully, (False, error) otherwise.
    """
    try:
        headers = {
            "Accept": "application/json",
        } | TokenAuthenticator(token=config["access_token"]).get_auth_header()
        resp = requests.get(f"https://{config['wrike_instance']}/api/v4/version", headers=headers)
        resp.raise_for_status()
        return True, None
    except requests.exceptions.RequestException as e:
        error = e.response.json()
        message = error.get("errorDescription") or error.get("error")
        return False, message