code: def test_deprecated_distance_metric_supports(metric):
      # Check that a warning is raised for all deprecated distance metric supports
      clf = NearestCentroid(metric=metric)
      with pytest.warns(
          FutureWarning,
          match="Support for distance metrics other than euclidean and manhattan",
      ):
          clf.fit(X, y)
  
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 9 for calling a global function with example usage: test_deprecated_distance_metric_supports(metric) without return types