code: def test_raises_error_when_target_not_binary(df_enc_numeric):
      transformer = SelectByInformationValue()
      with pytest.raises(ValueError):
          transformer.fit(
              df_enc_numeric[["var_A", "target"]],
              df_enc_numeric["var_B"],
          )
  
file_path: feature_engine/tests/test_selection/test_information_value.py
imports: import math
  import numpy
  import pandas
  import pytest
  from feature_engine.selection import SelectByInformationValue
label_desc: Use image node_id 4 for calling a global function with example usage: test_raises_error_when_target_not_binary(df_enc_numeric) without return types