code: def test_manhattan_metric(csr_container):
      # Test the manhattan metric.
      X_csr = csr_container(X)
  
      clf = NearestCentroid(metric="manhattan")
      clf.fit(X, y)
      dense_centroid = clf.centroids_
      clf.fit(X_csr, y)
      assert_array_equal(clf.centroids_, dense_centroid)
      assert_array_equal(dense_centroid, [[-1, -1], [1, 1]])
  
file_path: scikit-learn/sklearn/neighbors/tests/test_nearest_centroid.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from sklearn import datasets
  from sklearn.neighbors import NearestCentroid
  from sklearn.utils.fixes import CSR_CONTAINERS
label_desc: Use image node_id 8 for calling a global function with example usage: test_manhattan_metric(csr_container) without return types