code: def test_mutual_reachability_graph_equivalence_dense_sparse():
      """Check that we get the same results for dense and sparse implementation."""
      rng = np.random.RandomState(0)
      X = rng.randn(5, 5)
      X_dense = X.T @ X
      X_sparse = _convert_container(X_dense, "sparse_csr")
  
      mr_graph_dense = mutual_reachability_graph(X_dense, min_samples=3)
      mr_graph_sparse = mutual_reachability_graph(
          X_sparse, min_samples=3
      )
  
      assert_allclose(mr_graph_dense, mr_graph_sparse.toarray())
  
file_path: scikit-learn/sklearn/cluster/_hdbscan/tests/test_reachibility.py
imports: import numpy
  import pytest
  from sklearn.cluster._hdbscan._reachability import mutual_reachability_graph
  from sklearn.utils._testing import _convert_container, assert_allclose
label_desc: Use image node_id 3 for calling a global function with example usage: test_mutual_reachability_graph_equivalence_dense_sparse() without return types