code: def test_hdbscan_core_dists_bug_4054():
      """
      This test explicitly verifies that the MRE from
      https://github.com/rapidsai/cuml/issues/4054
      matches the reference impl
      """
  
      X, y = datasets.make_moons(
          n_samples=10000, noise=0.12, random_state=0
      )
  
      cu_labels_ = HDBSCAN(
          min_samples=25, min_cluster_size=25
      ).fit_predict(X)
      sk_labels_ = hdbscan.HDBSCAN(
          min_samples=25,
          min_cluster_size=25,
          approx_min_span_tree=False,
      ).fit_predict(X)
  
      assert adjusted_rand_score(cu_labels_, sk_labels_) > 0.99
  
imports: from cuml.internals.safe_imports import gpu_only_import
  from sklearn.model_selection import train_test_split
  from sklearn import datasets
  from hdbscan.plots import CondensedTree
  import hdbscan
  from cuml.internals import logger
  import pytest
  from cuml.cluster.hdbscan import HDBSCAN, condense_hierarchy
  from cuml.cluster.hdbscan.prediction import all_points_membership_vectors, approximate_predict, membership_vector
  from sklearn.datasets import make_blobs
  from cuml.metrics import adjusted_rand_score
  from cuml.testing.utils import get_pattern, array_equal
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 11 for calling a global function with example usage: test_hdbscan_core_dists_bug_4054() without return types