code: def test_error_if_df_contains_na_in_transform(df_enc, df_enc_na):
      # test case 10: when dataset contains na, transform method}
      encoder = WoEEncoder(variables=None)
      encoder.fit(df_enc[["var_A", "var_B"]], df_enc["target"])
      with pytest.raises(ValueError):
          encoder.transform(df_enc_na)
  
file_path: feature_engine/tests/test_encoding/test_woe_encoder.py
imports: import pandas
  import pytest
  from feature_engine.encoding import WoEEncoder
label_desc: Use image node_id 8 for calling a global function with example usage: test_error_if_df_contains_na_in_transform(df_enc, df_enc_na) without return types