code: def write(img, path):
      """Writes image to file.
  
      Args:
          img: a numpy array
          path: the output path
      """
      etai.write(img, path)
  
imports: import logging
  import os
  import eta.core.image
  import eta.core.utils
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.core.validation
label_desc: Use image node_id 2 for calling a global function with example usage: write(img, path) without return types