code: def test_clas_externalsource_methods_index_exists(
      classifier_explainer_with_external_data_methods,
  ):
      assert (
          classifier_explainer_with_external_data_methods.index_exists(
              "0"
          )
      )
      assert (
          classifier_explainer_with_external_data_methods.index_exists(
              "100"
          )
      )
      assert (
          classifier_explainer_with_external_data_methods.index_exists(
              "160"
          )
      )
      assert (
          classifier_explainer_with_external_data_methods.index_exists(
              0
          )
      )
  
      assert not classifier_explainer_with_external_data_methods.index_exists(
          -1
      )
      assert not classifier_explainer_with_external_data_methods.index_exists(
          120
      )
      assert not classifier_explainer_with_external_data_methods.index_exists(
          "wrong index"
      )
  
imports: import pytest
  import pandas
  from explainerdashboard.explainers import ClassifierExplainer, RegressionExplainer
  from explainerdashboard.datasets import titanic_survive, titanic_fare
label_desc: Use image node_id 14 for calling a global function with example usage: test_clas_externalsource_methods_index_exists(classifier_explainer_with_external_data_methods) without return types