code: def test_raises_error_if_df_contains_na(df_enc_big, df_enc_big_na):
      # test case 4: when dataset contains na, fit method
      with pytest.raises(ValueError):
          encoder = OneHotEncoder()
          encoder.fit(df_enc_big_na)
  
      # test case 4: when dataset contains na, transform method
      with pytest.raises(ValueError):
          encoder = OneHotEncoder()
          encoder.fit(df_enc_big)
          encoder.transform(df_enc_big_na)
  
file_path: feature_engine/tests/test_encoding/test_onehot_encoder.py
imports: import pandas
  import pytest
  from sklearn.pipeline import Pipeline
  from feature_engine.encoding import OneHotEncoder
label_desc: Use image node_id 6 for calling a global function with example usage: test_raises_error_if_df_contains_na(df_enc_big, df_enc_big_na) without return types