code: def test_mutual_reachability_graph_error_sparse_format():
      """Check that we raise an error if the sparse format is not CSR."""
      rng = np.random.RandomState(0)
      X = rng.randn(10, 10)
      X = X.T @ X
      np.fill_diagonal(X, 0.0)
      X = _convert_container(X, "sparse_csc")
  
      err_msg = "Only sparse CSR matrices are supported"
      with pytest.raises(ValueError, match=err_msg):
          mutual_reachability_graph(X)
  
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 1 for calling a global function with example usage: test_mutual_reachability_graph_error_sparse_format() without return types