docstr: Return a document string for this completion object.
  
  Example:
  
  >>> from jedi import Script
  >>> source = '''\
  ... def f(a, b=1):
  ...     "Document for function f."
  ... '''
  >>> script = Script(source, 1, len('def f'), 'example.py')
  >>> doc = script.goto_definitions()[0].docstring()
  >>> print(doc)
  f(a, b=1)
  <BLANKLINE>
  Document for function f.
  
  Notice that useful extra information is added to the actual
  docstring.  For function, it is call signature.  If you need
  actual docstring, use ``raw=True`` instead.
  
  >>> print(script.goto_definitions()[0].docstring(raw=True))
  Document for function f.
  
  :param fast: Don't follow imports that are only one level deep like
      ``import foo``, but follow ``from foo import bar``. This makes
      sense for speed reasons. Completing `import a` is slow if you use
      the ``foo.docstring(fast=False)`` on every object, because it
      parses all libraries starting with ``a``.
docstr_tok: ["Return","a","document","string","for","this","completion","object",".","Example",":",">",">",">","from","jedi","import","Script",">",">",">","source","=","``","'\\","...","def","f","(","a",",","b=1",")",":","...","``","Document","for","function","f.","''","...","``","'",">",">",">","script","=","Script","(","source",",","1",",","len","(","'def","f","'",")",",","'example.py","'",")",">",">",">","doc","=","script.goto_definitions","(",")","[","0","]",".docstring","(",")",">",">",">","print","(","doc",")","f","(","a",",","b=1",")","<","BLANKLINE",">","Document","for","function","f.","Notice","that","useful","extra","information","is","added","to","the","actual","docstring",".","For","function",",","it","is","call","signature",".","If","you","need","actual","docstring",",","use","``","raw=True","``","instead",".",">",">",">","print","(","script.goto_definitions","(",")","[","0","]",".docstring","(","raw=True",")",")","Document","for","function","f.",":","param","fast",":","Do","n't","follow","imports","that","are","only","one","level","deep","like","``","import","foo","``",",","but","follow","``","from","foo","import","bar","``",".","This","makes","sense","for","speed","reasons",".","Completing","`","import","a","`","is","slow","if","you","use","the","``","foo.docstring","(","fast=False",")","``","on","every","object",",","because","it","parses","all","libraries","starting","with","``","a","``","."]
code: def docstring(self, raw=False, fast=True):
      r"""
          Return a document string for this completion object.
  
          Example:
  
          >>> from jedi import Script
          >>> source = '''\
          ... def f(a, b=1):
          ...     "Document for function f."
          ... '''
          >>> script = Script(source, 1, len('def f'), 'example.py')
          >>> doc = script.goto_definitions()[0].docstring()
          >>> print(doc)
          f(a, b=1)
          <BLANKLINE>
          Document for function f.
  
          Notice that useful extra information is added to the actual
          docstring.  For function, it is call signature.  If you need
          actual docstring, use ``raw=True`` instead.
  
          >>> print(script.goto_definitions()[0].docstring(raw=True))
          Document for function f.
  
          :param fast: Don't follow imports that are only one level deep like
              ``import foo``, but follow ``from foo import bar``. This makes
              sense for speed reasons. Completing `import a` is slow if you use
              the ``foo.docstring(fast=False)`` on every object, because it
              parses all libraries starting with ``a``.
          """
      return _Help(self._name).docstring(fast=fast, raw=raw)
  
imports: import re
  from parso.python.tree import search_ancestor
  from jedi import settings
  from jedi.evaluate.utils import ignored, unite
  from jedi.cache import memoize_method
  from jedi.evaluate import imports
  from jedi.evaluate import compiled
  from jedi.evaluate.imports import ImportName
  from jedi.evaluate.context import instance
  from jedi.evaluate.context import ClassContext, FunctionExecutionContext
  from jedi.api.keywords import KeywordName
label_desc: Use image node_id 9 for calling the BaseDefinition obj's underlying member method code with example usage: obj.docstring(raw, fast) and returns: _Help