code: def create_parsers():
    
    parser = argparse.ArgumentParser(
        epilog='For detailed documentation, go to http://github.com/apache/incubator-heron',
        usage="%(prog)s [options] [help]",
        add_help=False)
  
    parser = add_titles(parser)
    parser = add_arguments(parser)
  
    ya_parser = argparse.ArgumentParser(
        parents=[parser],
        formatter_class=SubcommandHelpFormatter,
        add_help=False)
  
    subparsers = ya_parser.add_subparsers(
        title="Available commands")
  
    help_parser = subparsers.add_parser(
        'help',
        help='Prints help',
        add_help=False)
  
    help_parser.set_defaults(help=True)
  
    subparsers.add_parser(
        'version',
        help='Prints version',
        add_help=True)
  
    return parser, ya_parser
docs: create argument parser