code: def get_argument_parser():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "-a", "--all", action="store_const", const=True, default=False
      )
      parser.add_argument(
          "-b",
          "--black",
          action="store_const",
          const=True,
          default=False,
      )
      parser.add_argument(
          "-f",
          "--flake",
          action="store_const",
          const=True,
          default=False,
      )
      parser.add_argument(
          "-c",
          "--check",
          action="store_const",
          const=True,
          default=False,
          help="Only check (no correction)",
      )
      parser.add_argument(
          "-s",
          "--sort",
          action="store_const",
          const=True,
          default=False,
      )
      parser.add_argument(
          "-r",
          "--repo",
          action="store_const",
          const=True,
          default=False,
          help="Running the linter on the whole repository",
      )
      parser.add_argument(
          "-p",
          "--path",
          type=str,
          default="",
          help="Running the linter on a specific directory",
      )
      return parser
  
file_path: vissl/dev/lint_commit.py
imports: import argparse
  import os
  from typing import Iterable, NamedTuple, Sequence
label_desc: Use image node_id 1 for calling a global function with example usage: get_argument_parser() and returns: parser