code: def _set_term_title_xterm(title):
      """Change virtual terminal title in xterm-workalikes"""
      global _xterm_term_title_saved
      # Only save the title the first time we set, otherwise restore will only
      # go back one title (probably undoing a %cd title change).
      if not _xterm_term_title_saved:
          # save the current title to the xterm "stack"
          sys.stdout.write("\033[22;0t")
          _xterm_term_title_saved = True
      sys.stdout.write("\033]0;%s\007" % title)
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/terminal.py
imports: import os
  import sys
  import warnings
  from shutil import get_terminal_size
label_desc: Use image node_id 4 for calling a global function with example usage: _set_term_title_xterm(title) without return types