code: def fast_abs_percentile(data, percentile=80):
      """Implement a fast version of the percentile of the absolute value.
  
      Parameters
      ----------
      data : ndarray, possibly masked array
          The input data.
  
      percentile : number between 0 and 100
          The percentile that we are asking for.
  
      Returns
      -------
      value : number
          The score at percentile.
  
      Notes
      -----
      This is a faster, and less accurate version of
      scipy.stats.scoreatpercentile(np.abs(data), percentile)
  
      """
      if hasattr(data, "mask"):
          # Catter for masked arrays
          data = np.asarray(data[np.logical_not(data.mask)])
      data = np.abs(data)
      data = data.ravel()
      index = int(data.size * 0.01 * percentile)
      # Partial sort: faster than sort
      data = np.partition(data, index)
      return data[index]
  
label_desc: Use image node_id 1 for calling a global function with example usage: fast_abs_percentile(data, percentile) and returns: data