code: def save_pillow_close(im):
      # see issue #216 and #300
      if hasattr(im, "close"):
          if hasattr(getattr(im, "fp", None), "close"):
              im.close()
  
imports: import logging
  import threading
  import numpy
  from ..core import Format, image_as_uint
  from ..core.request import URI_FILE, URI_BYTES
  from .pillowmulti import GIFFormat, TIFFFormat
label_desc: Use image node_id 1 for calling a global function with example usage: save_pillow_close(im) without return types