code: def get_auth_token():
      global token
  
      if token is not None:
          return token
  
      import keyring
  
      token = keyring.get_password("github", fake_username)
      if token is not None:
          return token
  
      print(
          "Please enter your github username and password. These are not "
          "stored, only used to get an oAuth token. You can revoke this at "
          "any time on Github."
      )
      user = input("Username: ")
      pw = getpass.getpass("Password: ")
  
      auth_request = {
          "scopes": ["public_repo", "gist"],
          "note": "IPython tools",
          "note_url": "https://github.com/ipython/ipython/tree/master/tools",
      }
      response = requests.post(
          "https://api.github.com/authorizations",
          auth=(user, pw),
          data=json.dumps(auth_request),
      )
      response.raise_for_status()
      token = json.loads(response.text)["token"]
      keyring.set_password("github", fake_username, token)
      return token
  
file_path: Theano/theano/misc/gh_api.py
imports: from __future__ import absolute_import, print_function, division
  import requests
  import getpass
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: get_auth_token() and returns: token, token, token