code: def test_raises_error_if_na_in_df(df_na, df_vartypes):
      # when dataset contains na, fit method
      with pytest.raises(ValueError):
          transformer = MatchVariables()
          transformer.fit(df_na)
  
      # when dataset contains na, transform method
      with pytest.raises(ValueError):
          transformer = MatchVariables()
          transformer.fit(df_vartypes)
          transformer.transform(df_na)
  
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 6 for calling a global function with example usage: test_raises_error_if_na_in_df(df_na, df_vartypes) without return types