code: def has_hdbscan(raise_if_unavailable=False):
      try:
          import hdbscan  # NOQA
  
          return True
      except ImportError:
          if not raise_if_unavailable:
              return False
          else:
              raise ImportError(
                  "hdbscan is not available. Please install hdbscan."
              )
  
imports: import platform
  from cuml.internals.safe_imports import gpu_only_import, UnavailableError
  from distutils.version import LooseVersion
label_desc: Use image node_id 15 for calling a global function with example usage: has_hdbscan(raise_if_unavailable) and returns: True, False