code: def clean_scope_docstring(scope_node):
      """Returns a cleaned version of the docstring token."""
      node = scope_node.get_doc_node()
      if node is not None:
          # TODO We have to check next leaves until there are no new
          # leaves anymore that might be part of the docstring. A
          # docstring can also look like this: ``'foo' 'bar'
          # Returns a literal cleaned version of the ``Token``.
          cleaned = cleandoc(safe_literal_eval(node.value))
          # Since we want the docstr output to be always unicode, just
          # force it.
          return force_unicode(cleaned)
      return ""
  
file_path: catboost/contrib/python/jedi/py3/jedi/parser_utils.py
imports: import re
  import textwrap
  from inspect import cleandoc
  from parso.python import tree
  from parso.cache import parser_cache
  from jedi._compatibility import literal_eval, force_unicode
label_desc: Use image node_id 6 for calling a global function with example usage: clean_scope_docstring(scope_node) and returns: str, force_unicode