code: def test_cluster_hdbscan():
      try:
          from hdbscan import HDBSCAN
  
          _has_hdbscan = True
      except:
          _has_hdbscan = False
  
      if _has_hdbscan:
          hdbscan_labels = cluster(data, cluster="HDBSCAN")
          assert len(set(hdbscan_labels)) == 2
      else:
          with pytest.raises(ImportError):
              hdbscan_labels = cluster(data, cluster="HDBSCAN")
  
imports: import numpy
  import pytest
  from hypertools.tools.cluster import cluster
  from hypertools.plot.plot import plot
label_desc: Use image node_id 3 for calling a global function with example usage: test_cluster_hdbscan() without return types