code: def _format_final_exc_line(etype, value):
      """Return a list of a single line -- normal case for format_exception_only"""
      valuestr = _some_str(value)
      if value is None or not valuestr:
          line = "{}\n".format(etype)
      else:
          line = "{}: {}\n".format(etype, valuestr)
      return line
  
file_path: catboost/contrib/python/pytest/py2/_pytest/_code/_py2traceback.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import types
  from six import text_type
label_desc: Use image node_id 2 for calling a global function with example usage: _format_final_exc_line(etype, value) and returns: line