code: def _safe_unicode(s):
      try:
          return _unicode(s)
      except UnicodeDecodeError:
          return repr(s)
  
file_path: catboost/contrib/python/tornado/tornado-4/tornado/log.py
imports: from __future__ import absolute_import, division, print_function
  import logging
  import logging.handlers
  import sys
  from tornado.escape import _unicode
  from tornado.util import unicode_type, basestring_type
label_desc: Use image node_id 2 for calling a global function with example usage: _safe_unicode(s) and returns: _unicode, repr