code: def save_as_tif(filename, array):
      array = array[::-1, ...]  # Upside-down
      if not filename.endswith(".tif"):
          filename += ".tif"
      file_path = os.path.join("tests", "testing_data", filename)
      imwrite(file_path, array, compression="jpeg", tile=(16, 16))
  
file_path: MONAI/tests/test_lesion_froc.py
imports: from __future__ import annotations
  import os
  import unittest
  from unittest import skipUnless
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.metrics import LesionFROC
  from monai.utils import optional_import
label_desc: Use image node_id 1 for calling a global function with example usage: save_as_tif(filename, array) without return types