code: def _save_cjpeg(im, fp, filename):
      # ALTERNATIVE: handle JPEGs via the IJG command line utilities.
      tempfile = im._dump()
      subprocess.check_call(["cjpeg", "-outfile", filename, tempfile])
      try:
          os.unlink(tempfile)
      except OSError:
          pass
  
imports: from __future__ import annotations
  import array
  import io
  import math
  import os
  import struct
  import subprocess
  import sys
  import tempfile
  import warnings
  from .None import Image, ImageFile
  from ._binary import i16be
  from ._binary import i32be
  from ._binary import o8
  from ._binary import o16be
  from .JpegPresets import presets
label_desc: Use image node_id 11 for calling a global function with example usage: _save_cjpeg(im, fp, filename) without return types