code: def parse_config(subparsers):
      parser_config = subparsers.add_parser(
          "config",
          formatter_class=argparse.RawTextHelpFormatter,
          help=Help.group_config,
      )
      subparsers_config = parser_config.add_subparsers(
          title="commands", dest="command"
      )
      subparsers_config.required = True
      subparsers_config.choices = Help.config_choices
  
      parser_config_view = subparsers_config.add_parser(
          "view",
          formatter_class=argparse.RawTextHelpFormatter,
          help=Help.command_config_view,
      )
      parser_config_view.set_defaults(func=api.print_config_values)
  
      parser_config_set = subparsers_config.add_parser(
          "set",
          formatter_class=argparse.RawTextHelpFormatter,
          help=Help.command_config_set,
      )
      parser_config_set._action_groups.pop()
      parser_config_set_required = parser_config_set.add_argument_group(
          "required arguments"
      )
      parser_config_set_required.add_argument(
          "-n",
          "--name",
          dest="name",
          required=True,
          help=Help.param_config_name,
      )
      parser_config_set_required.add_argument(
          "-v",
          "--value",
          dest="value",
          required=True,
          help=Help.param_config_value,
      )
      parser_config_set.set_defaults(func=api.set_config_value)
  
      parser_config_unset = subparsers_config.add_parser(
          "unset",
          formatter_class=argparse.RawTextHelpFormatter,
          help=Help.command_config_unset,
      )
      parser_config_unset._action_groups.pop()
      parser_config_unset_required = (
          parser_config_unset.add_argument_group("required arguments")
      )
      parser_config_unset_required.add_argument(
          "-n",
          "--name",
          dest="name",
          required=True,
          help=Help.param_config_name,
      )
      parser_config_unset.set_defaults(func=api.unset_config_value)
  
file_path: kaggle-api/kaggle/cli.py
imports: from __future__ import print_function
  import argparse
  import json
  from kaggle import api
  from kaggle import KaggleApi
  from .rest import ApiException
  import six
label_desc: Use image node_id 10 for calling a global function with example usage: parse_config(subparsers) without return types