code: def format_issue_output(
      issue_type, issue_id, status, summary, assignee, components
  ):
      if not assignee:
          assignee = "NOT ASSIGNED!!!"
      else:
          assignee = getattr(assignee, "displayName", assignee)
  
      if len(components) == 0:
          components = "NO COMPONENTS!!!"
      else:
          components = ", ".join(
              (getattr(x, "name", x) for x in components)
          )
  
      if issue_type == "jira":
          url = "/".join((JIRA_API_BASE, "browse", issue_id))
      else:
          url = f"https://github.com/{ORG_NAME}/{PROJECT_NAME}/issues/{issue_id}"
  
      return """=== {} {} ===
  Summary\t\t{}
  Assignee\t{}
  Components\t{}
  Status\t\t{}
  URL\t\t{}""".format(
          issue_type.upper(),
          issue_id,
          summary,
          assignee,
          components,
          status,
          url,
      )
  
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 6 for calling a global function with example usage: format_issue_output(issue_type, issue_id, status, summary, assignee, components) and returns: str