code: def _shortened(word):
      dpos = word.find("$")
      return "|".join(
          word[:dpos] + word[dpos + 1 : i] + r"\b"
          for i in range(len(word), dpos, -1)
      )
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/graphics.py
imports: from pygments.lexer import RegexLexer, words, include, bygroups, using, this, default
  from pygments.token import Text, Comment, Operator, Keyword, Name, Number, Punctuation, String, Whitespace
label_desc: Use image node_id 1 for calling a global function with example usage: _shortened(word) and returns: str