code: def can_import(api):
      """Safely query whether an API is importable, without importing it"""
      if not has_binding(api):
          return False
  
      current = loaded_api()
      if api == QT_API_PYQT_DEFAULT:
          return current in [QT_API_PYQT, QT_API_PYQTv1, None]
      else:
          return current in [api, None]
  
imports: import sys
  import types
  from functools import partial
  from IPython.utils.version import check_version
label_desc: Use image node_id 6 for calling a global function with example usage: can_import(api) and returns: False, unknown, unknown