code: def _jupyter_abspath(subcommand):
      """This method get the abspath of a specified jupyter-subcommand with no
      changes on ENV.
      """
      # get env PATH with self
      search_path = os.pathsep.join(_path_with_self())
      # get the abs path for the jupyter-<subcommand>
      jupyter_subcommand = "jupyter-{}".format(subcommand)
      abs_path = which(jupyter_subcommand, path=search_path)
      if abs_path is None:
          raise Exception(
              "Jupyter command `{}` not found.".format(
                  jupyter_subcommand
              )
          )
  
      if not os.access(abs_path, os.X_OK):
          raise Exception(
              "Jupyter command `{}` is not executable.".format(
                  jupyter_subcommand
              )
          )
  
      return abs_path
  
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 4 for calling a global function with example usage: _jupyter_abspath(subcommand) and returns: abs_path