code: def test_dtreg_pdp_df(precalculated_dt_regression_explainer):
      assert isinstance(
          precalculated_dt_regression_explainer.pdp_df("Age"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_dt_regression_explainer.pdp_df("Gender"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_dt_regression_explainer.pdp_df("Deck"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_dt_regression_explainer.pdp_df("Age", index=0),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_dt_regression_explainer.pdp_df(
              "Gender", index=0
          ),
          pd.DataFrame,
      )
  
imports: import pandas
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: test_dtreg_pdp_df(precalculated_dt_regression_explainer) without return types