code: def test_error_when_division_by_zero(_func, df_vartypes):
      df_zero = df_vartypes.copy()
      df_zero.loc[1, "Marks"] = 0
  
      transformer = RelativeFeatures(
          variables=["Age"],
          reference=["Marks"],
          func=_func,
      )
      transformer.fit(df_vartypes)
      with pytest.raises(ValueError):
          transformer.transform(df_zero)
  
imports: import numpy
  import pandas
  import pytest
  from sklearn.pipeline import Pipeline
  from feature_engine.creation import RelativeFeatures
label_desc: Use image node_id 15 for calling a global function with example usage: test_error_when_division_by_zero(_func, df_vartypes) without return types