code: def imitate_pydoc(string):
      """
      It's not possible to get the pydoc's without starting the annoying pager
      stuff.
      """
      if pydoc_topics is None:
          return ""
  
      # str needed because of possible unicode stuff in py2k (pydoc doesn't work
      # with unicode strings)
      string = str(string)
      h = pydoc.help
      with ignored(KeyError):
          # try to access symbols
          string = h.symbols[string]
          string, _, related = string.partition(" ")
  
      get_target = lambda s: h.topics.get(s, h.keywords.get(s))
      while isinstance(string, str):
          string = get_target(string)
  
      try:
          # is a tuple now
          label, related = string
      except TypeError:
          return ""
  
      try:
          return (
              pydoc_topics.topics[label].strip() if pydoc_topics else ""
          )
      except KeyError:
          return ""
  
file_path: catboost/contrib/python/jedi/py3/jedi/api/keywords.py
imports: import pydoc
  from jedi.evaluate.utils import ignored
  from jedi.evaluate.filters import AbstractNameDefinition
label_desc: Use image node_id 2 for calling a global function with example usage: imitate_pydoc(string) and returns: str, unknown, str, str