code: def add_parser(subparsers, parent_parser):
      CONFIG_HELP = "Get or set config options."
  
      config_parser = subparsers.add_parser(
          "config",
          parents=[parent_config_parser, parent_parser],
          description=append_doc_link(CONFIG_HELP, "config"),
          help=CONFIG_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      config_parser.add_argument(
          "-u",
          "--unset",
          default=False,
          action="store_true",
          help="Unset option.",
      )
      config_parser.add_argument(
          "name",
          nargs="?",
          type=_name_type,
          help="Option name (section.option or remote.name.option).",
      )
      config_parser.add_argument(
          "value", nargs="?", help="Option value."
      )
      config_parser.add_argument(
          "-l",
          "--list",
          default=False,
          action="store_true",
          help="List all defined config values.",
      )
      config_parser.add_argument(
          "--show-origin",
          default=False,
          action="store_true",
          help="Show the source file containing each config value.",
      )
      config_parser.set_defaults(func=CmdConfig)
  
imports: import argparse
  import os
  from funcy import set_in
  from dvc.cli import formatter
  from dvc.cli.command import CmdBaseNoRepo
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 2 for calling a global function with example usage: add_parser(subparsers, parent_parser) without return types