code: def has_sklearn():
      try:
          import sklearn  # NOQA
  
          return True
      except ImportError:
          return False
  
imports: import platform
  from cuml.internals.safe_imports import gpu_only_import, UnavailableError
  from distutils.version import LooseVersion
label_desc: Use image node_id 14 for calling a global function with example usage: has_sklearn() and returns: True, False