code: def test_explainer_with_dataframe_y(
      fitted_rf_classifier_model, classifier_data
  ):
      _, _, X_test, y_test = classifier_data
      explainer = ClassifierExplainer(
          fitted_rf_classifier_model,
          X_test,
          y_test.to_frame(),
          cats=[
              {"Gender": ["Sex_female", "Sex_male", "Sex_nan"]},
              "Deck",
              "Embarked",
          ],
          cats_notencoded={"Gender": "No Gender"},
          labels=["Not survived", "Survived"],
      )
      _ = ExplainerDashboard(explainer)
  
imports: import pytest
  import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objects
  from explainerdashboard import ClassifierExplainer, ExplainerDashboard
  from explainerdashboard.explainer_methods import IndexNotFoundError
label_desc: Use image node_id 1 for calling a global function with example usage: test_explainer_with_dataframe_y(fitted_rf_classifier_model, classifier_data) without return types