docstr: Make sure that an unimplemented abstract explainer subclass does not get instantiated
docstr_tok: ["Make","sure","that","an","unimplemented","abstract","explainer","subclass","does","not","get","instantiated"]
code: def test_unimplemented_abstract_explainer(self):
      """
      Make sure that an unimplemented abstract explainer subclass does not get instantiated
      """
      with self.assertRaises(TypeError):
          try:
              _ = AbstractExplainer()
          except TypeError as e:
              msg = e.args[0]
              self.assertEqual(
                  msg,
                  "Can't instantiate abstract class AbstractExplainer "
                  "with abstract methods build_explainer, explain_instance, "
                  "load_explainer, save_explainer",
                  "Exception messages do not match",
              )
              raise TypeError(msg)
  
file_path: contextual-ai/tests/explainer/test_abstract_explainer.py
imports: import unittest
  from xai.explainer.abstract_explainer import AbstractExplainer
label_desc: Use image node_id 2 for calling the TestAbstractExplainer obj's underlying member method code with example usage: obj.test_unimplemented_abstract_explainer() without return types