parameters: (src, doc)
docstring: Check whether the source *src* contains the docstring *doc*.
  
          This is is helper function to skip displaying the docstring if the
          source already contains it, avoiding repetition of information.
docstring_summary: Check whether the source *src* contains the docstring *doc*.
docstring_tokens: Check whether the source * src * contains the docstring * doc * .
function: def _source_contains_docstring(src, doc):
          """
          Check whether the source *src* contains the docstring *doc*.
  
          This is is helper function to skip displaying the docstring if the
          source already contains it, avoiding repetition of information.
          """
          try:
              def_node, = ast.parse(dedent(src)).body
              return ast.get_docstring(def_node) == doc
          except Exception:
              # The source can become invalid or even non-existent (because it
              # is re-fetched from the source file) so the above code fail in
              # arbitrary ways.
              return False
function_tokens: def _source_contains_docstring ( src , doc ) : try : def_node , = ast . parse ( dedent ( src ) ) . body return ast . get_docstring ( def_node ) == doc except Exception : # The source can become invalid or even non-existent (because it # is re-fetched from the source file) so the above code fail in # arbitrary ways. return False