code: def test_index_exists(precalculated_rf_regression_explainer):
      assert precalculated_rf_regression_explainer.index_exists(0)
      assert precalculated_rf_regression_explainer.index_exists(
          precalculated_rf_regression_explainer.idxs[0]
      )
      assert not (
          precalculated_rf_regression_explainer.index_exists("bla")
      )
  
imports: import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objects
label_desc: Use image node_id 4 for calling a global function with example usage: test_index_exists(precalculated_rf_regression_explainer) without return types