code: def qtapi_version():
      """Return which QString API has been set, if any
  
      Returns
      -------
      The QString API version (1 or 2), or None if not set
      """
      try:
          import sip
      except ImportError:
          return
      try:
          return sip.getapi("QString")
      except ValueError:
          return
  
imports: import sys
  import types
  from functools import partial
  from IPython.utils.version import check_version
label_desc: Use image node_id 5 for calling a global function with example usage: qtapi_version() and returns: sip