code: def get_token():
      env_token = os.environ.get("GITHUB_TOKEN")
      if env_token is not None:
          print("using GITHUB_TOKEN from environment variable")
          return env_token
      else:
          return get_ghstack_token()
  
imports: import json
  import locale
  import os
  import re
  import subprocess
  from collections import namedtuple
  from dataclasses import dataclass
  from pathlib import Path
  import requests
label_desc: Use image node_id 9 for calling a global function with example usage: get_token() and returns: env_token, get_ghstack_token