code: def generate_python_code(
      args: argparse.Namespace,
  ) -> Tuple[Grammar, Parser, Tokenizer, ParserGenerator]:
      from pegen.build import build_python_parser_and_generator
  
      verbose = args.verbose
      verbose_tokenizer = verbose >= 3
      verbose_parser = verbose == 2 or verbose >= 4
      try:
          (
              grammar,
              parser,
              tokenizer,
              gen,
          ) = build_python_parser_and_generator(
              args.grammar_filename,
              args.output,
              verbose_tokenizer,
              verbose_parser,
              skip_actions=args.skip_actions,
          )
          return grammar, parser, tokenizer, gen
      except Exception as err:
          if args.verbose:
              raise  # Show traceback
          traceback.print_exception(err.__class__, err, None)
          sys.stderr.write("For full traceback, use -v\n")
          sys.exit(1)
  
file_path: cpython/Tools/peg_generator/pegen/__main__.py
imports: import argparse
  import sys
  import time
  import token
  import traceback
  from typing import Tuple
  from pegen.grammar import Grammar
  from pegen.parser import Parser
  from pegen.parser_generator import ParserGenerator
  from pegen.tokenizer import Tokenizer
  from pegen.validator import validate_grammar
label_desc: Use image node_id 2 for calling a global function with example usage: generate_python_code(args) and returns: grammar,  parser,  tokenizer,  gen