code: def clip_unsigned_saliency(
      saliency: np.ndarray, fraction=0.01
  ) -> np.ndarray:
      """Clips the top part if an unsigned saliency map."""
      assert saliency.min() >= 0
      t_value = np.quantile(saliency, 1 - fraction, method="lower")
      return np.clip(saliency, 0, t_value)
  
file_path: lit/lit_nlp/lib/image_utils.py
imports: import base64
  import io
  from typing import Optional
  import matplotlib.cm
  import numpy
  from PIL import Image
  from PIL import ImageEnhance
label_desc: Use image node_id 7 for calling a global function with example usage: clip_unsigned_saliency(saliency, fraction) and returns: np