code: def main(args=None):
      """Interpolate GDEF/GPOS/GSUB tables for a point on a designspace"""
      from fontTools import configLogger
      import argparse
      import sys
  
      parser = argparse.ArgumentParser(
          "fonttools varLib.interpolate_layout",
          description=main.__doc__,
      )
      parser.add_argument(
          "designspace_filename",
          metavar="DESIGNSPACE",
          help="Input TTF files",
      )
      parser.add_argument(
          "locations",
          metavar="LOCATION",
          type=str,
          nargs="+",
          help="Axis locations (e.g. wdth=120",
      )
      parser.add_argument(
          "-o",
          "--output",
          metavar="OUTPUT",
          help="Output font file (defaults to <designspacename>-instance.ttf)",
      )
      parser.add_argument(
          "-l",
          "--loglevel",
          metavar="LEVEL",
          default="INFO",
          help="Logging level (defaults to INFO)",
      )
  
      args = parser.parse_args(args)
  
      if not args.output:
          args.output = (
              os.path.splitext(args.designspace_filename)[0]
              + "-instance.ttf"
          )
  
      configLogger(level=args.loglevel)
  
      finder = lambda s: s.replace(
          "master_ufo", "master_ttf_interpolatable"
      ).replace(".ufo", ".ttf")
  
      loc = {}
      for arg in args.locations:
          tag, val = arg.split("=")
          loc[tag] = float(val)
  
      font = interpolate_layout(args.designspace_filename, loc, finder)
      log.info("Saving font %s", args.output)
      font.save(args.output)
  
file_path: catboost/contrib/python/fonttools/fontTools/varLib/interpolate_layout.py
imports: from fontTools.ttLib import TTFont
  from fontTools.varLib import models, VarLibError, load_designspace, load_masters
  from fontTools.varLib.merger import InstancerMerger
  import os.path
  import logging
  from copy import deepcopy
  from pprint import pformat
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types