code: def test_shap_neighbors(self):
      df = pd.DataFrame(
          np.random.randint(0, 100, size=(15, 4)), columns=list("ABCD")
      )
      contrib = pd.DataFrame(
          np.random.randint(10, size=(15, 4)), columns=list("EFGH")
      )
      instance = df.values[:2, :]
      extra_cols = np.repeat(np.array([0, 0]), 2).reshape(2, -1)
      instance = np.append(instance, extra_cols, axis=1)
      mode = "regression"
      t = shap_neighbors(instance, df, contrib, mode)
      assert t[0].shape == instance[:, :-2].shape
      assert t[1].shape == (len(df.columns),)
      assert t[2].shape == (len(df.columns),)
  
file_path: shapash/tests/unit_tests/utils/test_explanation_metrics.py
imports: import unittest
  import numpy
  import pandas
  from sklearn.linear_model import LinearRegression
  from shapash.utils.explanation_metrics import _df_to_array, _compute_distance, _compute_similarities, _get_radius, find_neighbors, shap_neighbors, get_min_nb_features, get_distance
label_desc: Use image node_id 6 for calling the TestExplanationMetrics obj's underlying member method code with example usage: obj.test_shap_neighbors() without return types