code: def test_calculate_iv_method():
      # values taken from here:
      # https://www.listendata.com/2015/03/weight-of-evidence-woe-and-information.html
      pos = np.array(
          [
              0.05379574,
              0.12288367,
              0.134352813,
              0.163025669,
              0.166302567,
              0.158929547,
              0.105406881,
              0.045057346,
              0.050245767,
          ]
      )
  
      neg = np.array(
          [
              0.059171598,
              0.100591716,
              0.115384615,
              0.150887574,
              0.159763314,
              0.162721893,
              0.121301775,
              0.068047337,
              0.062130178,
          ]
      )
      woe = np.log(pos / neg)
      sel = SelectByInformationValue()
      assert sel._calculate_iv(pos, neg, woe) == 0.0233856621001144
  
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 5 for calling a global function with example usage: test_calculate_iv_method() without return types