class_docstr: Unit test class for filters
  TODO: Docstring
docstr: Unit test cutoff contributions old
docstr_tok: ["Unit","test","cutoff","contributions","old"]
code: def test_cutoff_contributions_old(self):
      """
      Unit test cutoff contributions old
      """
      dataframe = pd.DataFrame(np.tile(np.array([1, 2, 3, 4]), (4, 2)))
      dataframe.columns = [
          "col_{}".format(col) for col in dataframe.columns
      ]
      output = cutoff_contributions_old(dataframe, max_contrib=4)
      expected = pd.DataFrame(
          np.tile(
              np.array(
                  [True, True, True, True, False, False, False, False]
              ),
              (4, 1),
          )
      )
      expected.columns = [
          "col_{}".format(col) for col in expected.columns
      ]
      assert output.equals(expected)
  
imports: import unittest
  import numpy
  import pandas
  from shapash.manipulation.filters import cutoff_contributions, cutoff_contributions_old
  from shapash.manipulation.filters import cap_contributions
  from shapash.manipulation.filters import hide_contributions
  from shapash.manipulation.filters import sign_contributions
  from shapash.manipulation.filters import combine_masks
label_desc: Use image node_id 7 for calling the TestFilter obj's underlying member method code with example usage: obj.test_cutoff_contributions_old() without return types