class_docstr: Unit test class for filters
  TODO: Docstring
docstr: Unit test cap contributions
docstr_tok: ["Unit","test","cap","contributions"]
code: def test_cap_contributions(self):
      """
      Unit test cap contributions
      """
      xmatr = pd.DataFrame(
          [
              [0.1, 0.43, -0.02],
              [-0.78, 0.002, -0.3],
              [0.62, -0.008, 0.4],
          ],
          columns=["c1", "c2", "c3"],
      )
      thresholdvalue = 0.3
      result = pd.DataFrame(
          [
              [False, True, False],
              [True, False, True],
              [True, False, True],
          ],
          columns=["c1", "c2", "c3"],
      )
      output = cap_contributions(xmatr, thresholdvalue)
      assert xmatr.shape == output.shape
      assert output.equals(result)
  
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 4 for calling the TestFilter obj's underlying member method code with example usage: obj.test_cap_contributions() without return types