code: def extract_vert_to_script(font_in, pe):
      with open(font_in, "rb") as in_file:
          data = in_file.read()
      sfnt = Sfnt(data)
      hhea = sfnt.hhea()
      os2 = sfnt.os2()
      set_os2_vert(pe, "WinAscent", os2["usWinAscender"])
      set_os2_vert(pe, "WinDescent", os2["usWinDescender"])
      set_os2_vert(pe, "TypoAscent", os2["sTypoAscender"])
      set_os2_vert(pe, "TypoDescent", os2["sTypoDescender"])
      set_os2_vert(pe, "HHeadAscent", hhea["Ascender"])
      set_os2_vert(pe, "HHeadDescent", hhea["Descender"])
  
file_path: matplotlib/tools/subset.py
imports: import getopt
  import os
  import struct
  import subprocess
  import sys
  import fontforge
label_desc: Use image node_id 8 for calling a global function with example usage: extract_vert_to_script(font_in, pe) without return types