code: def clip_quantile(X, quantile=1):
      """Clip the values of X into the given quantile."""
      if not isinstance(quantile, (list, tuple)):
          quantile = (quantile, 100 - quantile)
  
      low = np.percentile(X, quantile[0])
      high = np.percentile(X, quantile[1])
      X[X < low] = low
      X[X > high] = high
  
      return X
  
file_path: innvestigate/src/innvestigate/utils/visualizations.py
imports: from __future__ import annotations
  import matplotlib
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: clip_quantile(X, quantile) and returns: X