code: def test_anchor_tabular_explain_fails_not_fitted():
      explainer = AnchorTabular(
          good_predictor, feature_names=["f1", "f2"]
      )
      with pytest.raises(NotFittedError) as err:
          explainer.explain(np.ones(2))
      expected_msg = "This AnchorTabular instance is not fitted yet. Call 'fit' with appropriate arguments first."
      assert str(err.value) == expected_msg
  
file_path: alibi/alibi/explainers/tests/test_anchor_tabular.py
imports: from collections import OrderedDict, defaultdict
  from copy import deepcopy
  import numpy
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from alibi.api.defaults import DEFAULT_META_ANCHOR, DEFAULT_DATA_ANCHOR
  from alibi.exceptions import NotFittedError, PredictorCallError, PredictorReturnTypeError
  from alibi.explainers import AnchorTabular, DistributedAnchorTabular
  from alibi.explainers.tests.utils import predict_fcn
label_desc: Use image node_id 10 for calling a global function with example usage: test_anchor_tabular_explain_fails_not_fitted() without return types