code: def generalizeProgram(program, getNumRegions=None, **kwargs):
      return commandsToProgram(
          generalizeCommands(
              programToCommands(program, getNumRegions), **kwargs
          )
      )
  
imports: from fontTools.cffLib import maxStackLimit
label_desc: Use image node_id 9 for calling a global function with example usage: generalizeProgram(program, getNumRegions) and returns: commandsToProgram