code: def visit(visitor, paint):
      if paint.Format != otTables.PaintFormat.PaintGlyph:
          return True
  
      newPaint = otTables.Paint()
      newPaint.Format = paint.Format
      newPaint.Paint = paint.Paint
      newPaint.Glyph = paint.Glyph
      del paint.Paint
      del paint.Glyph
  
      _setup_scale_paint(paint, 1 / visitor.scaleFactor)
      paint.Paint = newPaint
  
      visitor.visit(newPaint.Paint)
  
      return False
  
imports: from fontTools.ttLib.ttVisitor import TTVisitor
  import fontTools.ttLib
  import fontTools.ttLib.tables.otBase
  import fontTools.ttLib.tables.otTables
  from fontTools.cffLib import VarStoreData
  import fontTools.cffLib.specializer
  from fontTools.varLib import builder
  from fontTools.misc.fixedTools import otRound
  from fontTools.ttLib.tables._g_l_y_f import VarComponentFlags
label_desc: Use image node_id 12 for calling a global function with example usage: visit(visitor, paint) and returns: False, True