code: def save_image(path: types.PathType, image: np.ndarray) -> None:
      """Saves the image to disk or gfile."""
      if not isinstance(path, gpath.GPath):
          path = gpath.GPath(path)
  
      with path.open("wb") as f:
          image = Image.fromarray(np.asarray(image))
          image.save(f, format=path.suffix.lstrip("."))
  
imports: import math
  from typing import Tuple
  from absl import logging
  import cv2
  import imageio
  import numpy
  from PIL import Image
  from nerfies import gpath
  from nerfies import types
label_desc: Use image node_id 11 for calling a global function with example usage: save_image(path, image) without return types