code: def _format_traceback_lines(lnum, index, lines, lvals=None):
      numbers_width = 7
      res = []
      i = lnum - index
  
      for line in lines:
          if i == lnum:
              # This is the line with the error
              pad = numbers_width - len(str(i))
              if pad >= 3:
                  marker = "-" * (pad - 3) + "-> "
              elif pad == 2:
                  marker = "> "
              elif pad == 1:
                  marker = ">"
              else:
                  marker = ""
              num = marker + str(i)
          else:
              num = "%*s" % (numbers_width, i)
          line = "%s %s" % (num, line)
  
          res.append(line)
          if lvals and i == lnum:
              res.append(lvals + "\n")
          i = i + 1
      return res
  
file_path: catboost/contrib/python/scikit-learn/py2/sklearn/externals/joblib/format_stack.py
imports: import inspect
  import keyword
  import linecache
  import os
  import pydoc
  import sys
  import time
  import tokenize
  import traceback
label_desc: Use image node_id 6 for calling a global function with example usage: _format_traceback_lines(lnum, index, lines, lvals) and returns: res