code: def VisualizeImageGrayscale(image_3d, percentile=99):
      r"""Returns a 3D tensor as a grayscale 2D tensor.
  
      This method sums a 3D tensor across the absolute value of axis=2, and then
      clips values at a given percentile.
      """
      image_2d = np.sum(np.abs(image_3d), axis=2)
  
      vmax = np.percentile(image_2d, percentile)
      vmin = np.min(image_2d)
  
      return np.clip((image_2d - vmin) / (vmax - vmin), 0, 1)
  
label_desc: Use image node_id 1 for calling a global function with example usage: VisualizeImageGrayscale(image_3d, percentile) and returns: np