code: def cap_contributions(s_contrib, threshold=0.1):
      """
      The function is able to compute a mask indicating where the input matrix
      has values above a given threshold in absolute value.
  
      Parameters
      ----------
      s : pandas.DataFrame
          Local contributions, positive and negative values.
      threshold: float, optional (default: 0.1)
          User defined threshold above which local contributions are hidden.
  
      Returns
      -------
      pandas.DataFrame
          Mask with only True of False elements.
      """
      mask = s_contrib.abs() >= threshold
      return mask
  
file_path: shapash/shapash/manipulation/filters.py
imports: import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: cap_contributions(s_contrib, threshold) and returns: mask