code: def _some_str(value):
      try:
          return text_type(value)
      except Exception:
          try:
              return bytes(value).decode("UTF-8", "replace")
          except Exception:
              pass
      return "<unprintable {} object>".format(type(value).__name__)
  
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 3 for calling a global function with example usage: _some_str(value) and returns: str, text_type, bytes