code: def test_transform_raises_error_if_na_in_df(df_vartypes, df_na):
      # test case 4: when dataset contains na, transform method
      with pytest.raises(ValueError):
          transformer = LogTransformer()
          transformer.fit(df_vartypes)
          transformer.transform(
              df_na[["Name", "City", "Age", "Marks", "dob"]]
          )
  
file_path: feature_engine/tests/test_transformation/test_log_transformer.py
imports: import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from feature_engine.transformation import LogTransformer
label_desc: Use image node_id 5 for calling a global function with example usage: test_transform_raises_error_if_na_in_df(df_vartypes, df_na) without return types