docstr: Test exception check when unsupported mode is provided
docstr_tok: ["Test","exception","check","when","unsupported","mode","is","provided"]
code: def test_build_explainer_unsupported_mode(self):
      """
      Test exception check when unsupported mode is provided
      """
      with self.assertRaises(
          UnsupportedModeError,
          msg="Algorithm should raise unsupported mode" "error",
      ):
          explainer = LimeTabularExplainer()
          explainer.build_explainer(
              np.arange(9).reshape((3, 3)),
              mode="unsupported_mode",
              predict_fn=None,
          )
  
file_path: contextual-ai/tests/explainer/test_lime_tabular_explainer.py
imports: import os
  import unittest
  import numpy
  from lime.lime_tabular import LimeTabularExplainer
  import xai
  from xai.explainer.explainer_exceptions import UnsupportedModeError, ExplainerUninitializedError
  from xai.explainer.tabular.lime_tabular_explainer import LimeTabularExplainer
label_desc: Use image node_id 2 for calling the TestLimeTabularExplainer obj's underlying member method code with example usage: obj.test_build_explainer_unsupported_mode() without return types