code: def VisualizeImageDiverging(image_3d, percentile=99):
      r"""Returns a 3D tensor as a 2D tensor with positive and negative values."""
      image_2d = np.sum(image_3d, axis=2)
  
      span = abs(np.percentile(image_2d, percentile))
      vmin = -span
      vmax = span
  
      return np.clip((image_2d - vmin) / (vmax - vmin), -1, 1)
  
label_desc: Use image node_id 2 for calling a global function with example usage: VisualizeImageDiverging(image_3d, percentile) and returns: np