def METHOD_NAME(self, logger, config: Mapping[str, Any]) -> Tuple[bool, Any]:
    """Connection check to validate that the user-provided config can be used to connect to the underlying API
    :param config:  the user-input config object conforming to the connector's spec.json
    :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.
    """
    ok = False
    error_msg = None
    try:
        config = ConnectorConfig.parse_obj(config)  # FIXME: this will be not need after we fix CDK
        api = InstagramAPI(access_token=config.access_token)
        logger.info(f"Available accounts: {api.accounts}")
        ok = True
    except Exception as exc:
        error_msg = repr(exc)
    return ok, error_msg