code: def jupyter_parser():
      parser = JupyterParser(
          description="Jupyter: Interactive Computing",
      )
      group = parser.add_mutually_exclusive_group(required=True)
      # don't use argparse's version action because it prints to stderr on py2
      group.add_argument(
          "--version",
          action="store_true",
          help="show the jupyter command's version and exit",
      )
      group.add_argument(
          "subcommand",
          type=str,
          nargs="?",
          help="the subcommand to launch",
      )
  
      group.add_argument(
          "--config-dir",
          action="store_true",
          help="show Jupyter config dir",
      )
      group.add_argument(
          "--data-dir",
          action="store_true",
          help="show Jupyter data dir",
      )
      group.add_argument(
          "--runtime-dir",
          action="store_true",
          help="show Jupyter runtime dir",
      )
      group.add_argument(
          "--paths",
          action="store_true",
          help="show all Jupyter paths. Add --json for machine-readable format.",
      )
      parser.add_argument(
          "--json",
          action="store_true",
          help="output paths as machine-readable json",
      )
  
      return parser
  
file_path: catboost/contrib/python/jupyter-core/py2/jupyter_core/command.py
imports: from __future__ import print_function
  import argparse
  import errno
  import json
  import os
  import sys
  import sysconfig
  from subprocess import Popen
  from .None import paths
  from .version import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: jupyter_parser() and returns: parser