code: def make_ipkernel_cmd(
      mod="ipykernel_launcher",
      executable=None,
      extra_arguments=None,
      **kw,
  ):
      """Build Popen command list for launching an IPython kernel.
  
      Parameters
      ----------
      mod : str, optional (default 'ipykernel')
          A string of an IPython module whose __main__ starts an IPython kernel
  
      executable : str, optional (default sys.executable)
          The Python executable to use for the kernel process.
  
      extra_arguments : list, optional
          A list of extra arguments to pass when executing the launch code.
  
      Returns
      -------
  
      A Popen command list
      """
      if executable is None:
          executable = sys.executable
      extra_arguments = extra_arguments or []
      arguments = [executable, "-m", mod, "-f", "{connection_file}"]
      arguments.extend(extra_arguments)
  
      return arguments
  
file_path: catboost/contrib/python/ipykernel/py2/ipykernel/kernelspec.py
imports: from __future__ import print_function
  import errno
  import json
  import os
  import shutil
  import sys
  import tempfile
  from jupyter_client.kernelspec import KernelSpecManager
  from traitlets.config import Application
label_desc: Use image node_id 1 for calling a global function with example usage: make_ipkernel_cmd(mod, executable, extra_arguments) and returns: arguments