code: def main():
      outfile = "../samples.jsonl"
  
      try:
          n_questions = int(argv[1])
      except (IndexError, ValueError):
          print(f"Usage: {argv[0]} num-questions")
          print(f"  f.i. {argv[0]} 100")
          print()
          print(f'The output goes to "{outfile}".')
          return False
  
      pgen = ProblemGenerator()
      tpl = Template()
      tpl.load("template.jsonl")
  
      with tpl.write(outfile) as writer:
          for count in range(n_questions):
              writer.add_instance(*pgen.generate())
  
      return True
  
imports: import re
  from sys import argv, exit
  from problem import ProblemGenerator
label_desc: Use image node_id 1 for calling a global function with example usage: main() and returns: True, False