code: def test_reg_externalsource_get_y(
      regression_explainer_with_external_data,
  ):
      assert isinstance(
          regression_explainer_with_external_data.get_y(0), float
      )
      assert isinstance(
          regression_explainer_with_external_data.get_y("0"), float
      )
      assert isinstance(
          regression_explainer_with_external_data.get_y("120"), float
      )
      assert isinstance(
          regression_explainer_with_external_data.get_y("150"), float
      )
  
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 17 for calling a global function with example usage: test_reg_externalsource_get_y(regression_explainer_with_external_data) without return types