code: def test_non_fitted_error(df_vartypes):
      with pytest.raises(NotFittedError):
          transformer = MatchVariables()
          transformer.transform(df_vartypes)
  
file_path: feature_engine/tests/test_preprocessing/test_match_columns.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from feature_engine.preprocessing import MatchVariables
label_desc: Use image node_id 7 for calling a global function with example usage: test_non_fitted_error(df_vartypes) without return types