code: def get_parser():
      parser = argparse.ArgumentParser(
          description="GraphVite command line executor v%s"
          % gv.__version__
      )
      command = parser.add_subparsers(metavar="command", dest="command")
      command.required = True
  
      new = command.add_parser(
          "new", help="create a new configuration file"
      )
      new.add_argument(
          "application",
          help="name of the application (e.g. graph)",
          nargs="+",
      )
      new.add_argument("--file", help="yaml file to save")
  
      run = command.add_parser(
          "run", help="run from configuration file"
      )
      run.add_argument("config", help="yaml configuration file")
      run.add_argument(
          "--no-eval",
          help="turn off evaluation",
          dest="eval",
          action="store_false",
      )
      run.add_argument(
          "--gpu", help="override the number of GPUs", type=int
      )
      run.add_argument(
          "--cpu", help="override the number of CPUs per GPU", type=int
      )
      run.add_argument(
          "--epoch", help="override the number of epochs", type=int
      )
  
      visualize = command.add_parser(
          "visualize", help="visualize high-dimensional vectors"
      )
      visualize.add_argument(
          "file", help="data file (numpy dump or txt)"
      )
      visualize.add_argument(
          "--label", help="label file (numpy dump or txt)"
      )
      visualize.add_argument("--save", help="png or pdf file to save")
      visualize.add_argument(
          "--perplexity",
          help="perplexity for the neighborhood",
          type=float,
          default=30,
      )
      visualize.add_argument(
          "--3d",
          help="3d plot",
          dest="dim",
          action="store_const",
          const=3,
          default=2,
      )
  
      baseline = command.add_parser(
          "baseline", help="reproduce baseline benchmarks"
      )
      baseline.add_argument(
          "keywords",
          help="any keyword of the baseline (e.g. model, dataset)",
          metavar="keyword",
          nargs="+",
      )
      baseline.add_argument(
          "--no-eval",
          help="turn off evaluation",
          dest="eval",
          action="store_false",
      )
      baseline.add_argument(
          "--gpu", help="overwrite the number of GPUs", type=int
      )
      baseline.add_argument(
          "--cpu", help="overwrite the number of CPUs per GPU", type=int
      )
      baseline.add_argument(
          "--epoch", help="override the number of epochs", type=int
      )
  
      list = command.add_parser("list", help="list available baselines")
  
      return parser
  
imports: from __future__ import print_function, absolute_import
  import os
  import re
  import glob
  import yaml
  import shutil
  import logging
  import argparse
  from easydict import EasyDict
  import numpy
  import graphvite
  import graphvite.application
label_desc: Use image node_id 2 for calling a global function with example usage: get_parser() and returns: parser