code: def test_woe_calculation(df_enc):
      pos_exp = pd.Series({"A": 0.333333, "B": 0.333333, "C": 0.333333})
      neg_exp = pd.Series({"A": 0.285714, "B": 0.571429, "C": 0.142857})
  
      woe_class = WoE()
      pos, neg, woe = woe_class._calculate_woe(
          df_enc, df_enc["target"], "var_A"
      )
  
      pd.testing.assert_series_equal(pos, pos_exp, check_names=False)
      pd.testing.assert_series_equal(neg, neg_exp, check_names=False)
      pd.testing.assert_series_equal(
          np.log(pos / neg), woe, check_names=False
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_woe_calculation(df_enc) without return types