code: def test_plot_partial_dependence_feature_name_reuse(
      pyplot, clf_diabetes, diabetes
  ):
      # second call to plot does not change the feature names from the first
      # call
  
      feature_names = diabetes.feature_names
      disp = PartialDependenceDisplay.from_estimator(
          clf_diabetes,
          diabetes.data,
          [0, 1],
          grid_resolution=10,
          feature_names=feature_names,
      )
  
      PartialDependenceDisplay.from_estimator(
          clf_diabetes,
          diabetes.data,
          [0, 1],
          grid_resolution=10,
          ax=disp.axes_,
      )
  
      for i, ax in enumerate(disp.axes_.ravel()):
          assert ax.get_xlabel() == feature_names[i]
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from scipy.stats.mstats import mquantiles
  from sklearn.compose import make_column_transformer
  from sklearn.datasets import load_diabetes, load_iris, make_classification, make_regression
  from sklearn.ensemble import GradientBoostingClassifier, GradientBoostingRegressor
  from sklearn.inspection import PartialDependenceDisplay
  from sklearn.linear_model import LinearRegression
  from sklearn.pipeline import make_pipeline
  from sklearn.preprocessing import OneHotEncoder
  from sklearn.utils._testing import _convert_container
label_desc: Use image node_id 10 for calling a global function with example usage: test_plot_partial_dependence_feature_name_reuse(pyplot, clf_diabetes, diabetes) without return types