code: def __init__(self, project_name, cmd):
      self.github_api = (
          f"https://api.github.com/repos/{ORG_NAME}/{project_name}"
      )
  
      token = None
      config = load_configuration()
      if "github" in config.sections():
          token = config["github"]["api_token"]
      if not token:
          token = os.environ.get("ARROW_GITHUB_API_TOKEN")
      if not token:
          token = cmd.prompt(
              "Env ARROW_GITHUB_API_TOKEN not set, "
              "please enter your GitHub API token "
              "(GitHub personal access token):"
          )
      headers = {
          "Accept": "application/vnd.github.v3+json",
          "Authorization": "token {0}".format(token),
      }
      self.headers = headers
  
imports: import configparser
  import os
  import pprint
  import re
  import subprocess
  import sys
  import requests
  import getpass
  from six.moves import input
  import six
label_desc: Use image node_id 1 to create a new GitHubAPI object from inherited base classes: object with example: obj = GitHubAPI(project_name, cmd)