code: def to_text(textish):
      if inspect.isfunction(textish):
          textish = textish()
      if isinstance(textish, bytes):
          textish = textish.decode()
      return textish
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/reporting.py
imports: import inspect
  from hypothesis._settings import Verbosity, settings
  from hypothesis.internal.compat import escape_unicode_characters
  from hypothesis.utils.dynamicvariables import DynamicVariable
label_desc: Use image node_id 5 for calling a global function with example usage: to_text(textish) and returns: textish