code: def test_not_fitted_error():
      with pytest.raises(sk.NotFittedError) as nfe:
          mod = ARIMA((0, 1, 0))
          sk.check_is_fitted(mod, "arima_res_")
      assert "Model has not been fit!" in pytest_error_str(nfe)
  
file_path: pmdarima/pmdarima/compat/tests/test_sklearn.py
imports: from pmdarima.arima import ARIMA
  from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.compat import sklearn
  import numpy
  import pandas
  from numpy.testing import assert_array_equal
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_not_fitted_error() without return types