code: def get_credentials(cmd):
      token = None
  
      config = load_configuration()
      if "jira" in config.sections():
          token = config["jira"].get("token")
  
      # Fallback to environment variables
      if not token:
          token = os.environ.get("APACHE_JIRA_TOKEN")
  
      # Fallback to user tty prompt
      if not token:
          token = cmd.prompt(
              "Env APACHE_JIRA_TOKEN not set, "
              "please enter your Jira API token "
              "(Jira personal access token):"
          )
  
      return token
  
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 10 for calling a global function with example usage: get_credentials(cmd) and returns: token