def check_connection(self, logger: AirbyteLogger, config: Mapping[(str, Any)]) -> Tuple[(bool, Optional[Any])]:
    slack_client = WebClient(token=config['api_token'])
    users = slack_client.users_list(limit=1).get('members', [])
    if (len(users) > 0):
        return (True, None)
    else:
        return (False, 'There are no users in the given Slack instance')
def check_connection(self, logger: AirbyteLogger, config: Mapping[(str, Any)]) -> Tuple[(bool, Optional[Any])]:
    slack_client = WebClient(token=config['api_token'])
    users = slack_client.users_list(limit=1).get('members', [])
    if (len(users) > 0):
        return (True, None)
    else:
        return (False, 'There are no users in the given Slack instance')