code: def abbrev_cwd():
      """Return abbreviated version of cwd, e.g. d:mydir"""
      cwd = os.getcwd().replace("\\", "/")
      drivepart = ""
      tail = cwd
      if sys.platform == "win32":
          if len(cwd) < 4:
              return cwd
          drivepart, tail = os.path.splitdrive(cwd)
  
      parts = tail.split("/")
      if len(parts) > 2:
          tail = "/".join(parts[-2:])
  
      return drivepart + (cwd == "/" and "/" or tail)
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/process.py
imports: import os
  import shutil
  import sys
  from ._process_common import getoutputerror, get_output_error_code, process_handler
label_desc: Use image node_id 2 for calling a global function with example usage: abbrev_cwd() and returns: unknown, cwd