def METHOD_NAME(self):
    credentials = self._technical_user_credentials()
    if len(credentials) < 2:
        return credentials[0]
    if self.hostname() == 'github.com':
        ApiCtor = github3.github.GitHub
        api_kwargs = {}
    else:
        ApiCtor = github3.github.GitHubEnterprise
        api_kwargs = {'url': self.http_url()}
    def rate_limit_remaining(credentials) -> int:
        api = ApiCtor(token=credentials.auth_token(), **api_kwargs)
        try:
            return api.ratelimit_remaining
        except github3.exceptions.ConnectionError:
            return 0
    best_credentials = max(credentials, key=rate_limit_remaining)
    return best_credentials