code: def _setup_scale_paint(paint, scale):
      if -2 <= scale <= 2 - (1 >> 14):
          paint.Format = otTables.PaintFormat.PaintScaleUniform
          paint.scale = scale
          return
  
      transform = otTables.Affine2x3()
      transform.populateDefaults()
      transform.xy = transform.yx = transform.dx = transform.dy = 0
      transform.xx = transform.yy = scale
  
      paint.Format = otTables.PaintFormat.PaintTransform
      paint.Transform = transform
  
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 10 for calling a global function with example usage: _setup_scale_paint(paint, scale) without return types