docstr: Save font
code: def save(self, filename):
      """Save font"""
  
      self.compile()
  
      # font data
      self.bitmap.save(os.path.splitext(filename)[0] + ".pbm", "PNG")
  
      # font metrics
      with open(os.path.splitext(filename)[0] + ".pil", "wb") as fp:
          fp.write(b"PILfont\n")
          fp.write(
              (";;;;;;%d;\n" % self.ysize).encode("ascii")
          )  # HACK!!!
          fp.write(b"DATA\n")
          for id in range(256):
              m = self.metrics[id]
              if not m:
                  puti16(fp, [0] * 10)
              else:
                  puti16(fp, m[0] + m[1] + m[2])
  
file_path: catboost/contrib/python/Pillow/py2/PIL/FontFile.py
imports: from __future__ import print_function
  import os
  from .None import Image, _binary
label_desc: Use image node_id 4 for calling the FontFile obj's underlying member method code with example usage: obj.save(filename) without return types