code: def main(args=None):
      """Instantiate a variation font"""
      from fontTools import configLogger
      import argparse
  
      parser = argparse.ArgumentParser(
          "fonttools varLib.mutator",
          description="Instantiate a variable font",
      )
      parser.add_argument(
          "input", metavar="INPUT.ttf", help="Input variable TTF file."
      )
      parser.add_argument(
          "locargs",
          metavar="AXIS=LOC",
          nargs="*",
          help="List of space separated locations. A location consist in "
          "the name of a variation axis, followed by '=' and a number. E.g.: "
          " wght=700 wdth=80. The default is the location of the base master.",
      )
      parser.add_argument(
          "-o",
          "--output",
          metavar="OUTPUT.ttf",
          default=None,
          help="Output instance TTF file (default: INPUT-instance.ttf).",
      )
      parser.add_argument(
          "--no-recalc-timestamp",
          dest="recalc_timestamp",
          action="store_false",
          help="Don't set the output font's timestamp to the current time.",
      )
      logging_group = parser.add_mutually_exclusive_group(
          required=False
      )
      logging_group.add_argument(
          "-v",
          "--verbose",
          action="store_true",
          help="Run more verbosely.",
      )
      logging_group.add_argument(
          "-q",
          "--quiet",
          action="store_true",
          help="Turn verbosity off.",
      )
      parser.add_argument(
          "--no-overlap",
          dest="overlap",
          action="store_false",
          help="Don't set OVERLAP_SIMPLE/OVERLAP_COMPOUND glyf flags.",
      )
      options = parser.parse_args(args)
  
      varfilename = options.input
      outfile = (
          os.path.splitext(varfilename)[0] + "-instance.ttf"
          if not options.output
          else options.output
      )
      configLogger(
          level=(
              "DEBUG"
              if options.verbose
              else "ERROR"
              if options.quiet
              else "INFO"
          )
      )
  
      loc = {}
      for arg in options.locargs:
          try:
              tag, val = arg.split("=")
              assert len(tag) <= 4
              loc[tag.ljust(4)] = float(val)
          except (ValueError, AssertionError):
              parser.error("invalid location argument format: %r" % arg)
      log.info("Location: %s", loc)
  
      log.info("Loading variable font")
      varfont = TTFont(
          varfilename, recalcTimestamp=options.recalc_timestamp
      )
  
      instantiateVariableFont(
          varfont, loc, inplace=True, overlap=options.overlap
      )
  
      log.info("Saving instance font %s", outfile)
      varfont.save(outfile)
  
file_path: catboost/contrib/python/fonttools/fontTools/varLib/mutator.py
imports: from fontTools.misc.fixedTools import floatToFixedToFloat, floatToFixed
  from fontTools.misc.roundTools import otRound
  from fontTools.pens.boundsPen import BoundsPen
  from fontTools.ttLib import TTFont, newTable
  from fontTools.ttLib.tables import ttProgram
  from fontTools.ttLib.tables._g_l_y_f import GlyphCoordinates, flagOverlapSimple, OVERLAP_COMPOUND
  from fontTools.varLib.models import supportScalar, normalizeLocation, piecewiseLinearMap
  from fontTools.varLib.merger import MutatorMerger
  from fontTools.varLib.varStore import VarStoreInstancer
  from fontTools.varLib.mvar import MVAR_ENTRIES
  from fontTools.varLib.iup import iup_delta
  import fontTools.subset.cff
  import os.path
  import logging
  from io import BytesIO
label_desc: Use image node_id 5 for calling a global function with example usage: main(args) without return types