class_docstr: The GitHub handler implementation
class_docstr_tok: ["The","GitHub","handler","implementation"]
docstr: Set up the connection required by the handler.
  
  Returns
  -------
  StatusResponse
      connection object
docstr_tok: ["Set","up","the","connection","required","by","the","handler",".","Returns","--","--","--","-","StatusResponse","connection","object"]
code: def connect(self) -> StatusResponse:
      """Set up the connection required by the handler.
  
      Returns
      -------
      StatusResponse
          connection object
      """
  
      connection_kwargs = {}
  
      if self.connection_data.get("api_key", None):
          connection_kwargs["login_or_token"] = self.connection_data[
              "api_key"
          ]
  
      if self.connection_data.get("github_url", None):
          connection_kwargs["base_url"] = self.connection_data[
              "github_url"
          ]
  
      self.connection = github.Github(**connection_kwargs)
      self.is_connected = True
  
      return self.connection
  
file_path: mindsdb/mindsdb/integrations/handlers/github_handler/github_handler.py
imports: import github
  from collections import OrderedDict
  from mindsdb.integrations.handlers.github_handler.github_tables import GithubIssuesTable, GithubPullRequestsTable, GithubCommitsTable, GithubReleasesTable, GithubBranchesTable, GithubContributorsTable, GithubMilestonesTable, GithubProjectsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 2 for calling the GithubHandler obj's underlying member method code with example usage: obj.connect() and returns: self