class_docstr: Test the import_optional function.
code: def teardown_method(self):
      # remove mock missing dependency error for other tests
      del ERROR_TYPES["non_existent_module"]
  
file_path: alibi/alibi/utils/tests/test_import_optional.py
imports: import pytest
  from alibi.utils.missing_optional_dependency import import_optional, ERROR_TYPES, MissingDependency
label_desc: Use image node_id 2 for calling the TestImportOptional obj's underlying member method code with example usage: obj.teardown_method() without return types