code: def _save(im, fp, filename):
      if im.mode[0] != "F":
          im = im.convert("F")
  
      hdr = makeSpiderHeader(im)
      if len(hdr) < 256:
          raise IOError("Error creating Spider header")
  
      # write the SPIDER header
      fp.writelines(hdr)
  
      rawmode = "F;32NF"  # 32-bit native floating point
      ImageFile._save(
          im, fp, [("raw", (0, 0) + im.size, 0, (rawmode, 0, 1))]
      )
  
imports: from __future__ import print_function
  import os
  import struct
  import sys
  from PIL import Image, ImageFile
label_desc: Use image node_id 6 for calling a global function with example usage: _save(im, fp, filename) without return types