code: def get_connection_file(app=None):
      """Return the path to the connection file of an app
  
      Parameters
      ----------
      app : IPKernelApp instance [optional]
          If unspecified, the currently running app will be used
      """
      if app is None:
          from ipykernel.kernelapp import IPKernelApp
  
          if not IPKernelApp.initialized():
              raise RuntimeError(
                  "app not specified, and not in a running Kernel"
              )
  
          app = IPKernelApp.instance()
      return filefind(app.connection_file, [".", app.connection_dir])
  
file_path: catboost/contrib/python/ipykernel/py2/ipykernel/connect.py
imports: from __future__ import absolute_import
  import json
  import sys
  from subprocess import Popen, PIPE
  import warnings
  from IPython.core.profiledir import ProfileDir
  from IPython.paths import get_ipython_dir
  from ipython_genutils.path import filefind
  from ipython_genutils.py3compat import str_to_bytes, PY3
  import jupyter_client
  from jupyter_client import write_connection_file
label_desc: Use image node_id 1 for calling a global function with example usage: get_connection_file(app) and returns: filefind