code: def get_ipython_package_dir() -> str:
      """Get the base directory where IPython itself is installed."""
      ipdir = os.path.dirname(IPython.__file__)
      assert isinstance(ipdir, str)
      return ipdir
  
file_path: catboost/contrib/python/ipython/py3/IPython/paths.py
imports: import os.path
  import tempfile
  from warnings import warn
  import IPython
  from IPython.utils.importstring import import_item
  from IPython.utils.path import get_home_dir, get_xdg_dir, get_xdg_cache_dir, compress_user, _writable_dir, ensure_dir_exists
label_desc: Use image node_id 3 for calling a global function with example usage: get_ipython_package_dir() and returns: ipdir