human
Write me a the Python code you requested given the following:
Complete the below
@cwd_at('.')
def test_completion_docstring():

    ''''Jedi should follow imports in certain conditions'
    '''
assistant
#Here is the Python code you requested.
    def docstr(src, result):
        c = Script(src).completions()[0]
        assert (c.docstring(raw=True, fast=False) == cleandoc(result))
    c = Script('import    jedi\njed').completions()[0]
    assert (c.docstring(fast=False) == cleandoc(jedi_doc))
    docstr('import    jedi\njedi.Scr', cleandoc(Script.__doc__))
    docstr('abcd=3;abcd', '')
    docstr('"hello"\nabcd=3\nabcd', '')
    docstr(dedent('\n                                def    x():\n                                                "hello"\n                                                0\n                                x'), 'hello')
    docstr(dedent('\n                                def    x():\n                                                "hello";0\n                                x'), 'hello')
    docstr(dedent('\n                                def    x():\n                                                "hello",0\n                                x'), '')
    docstr(dedent('\n                                def    x():\n                                                "hello"\n                                y    =    x\n                                y'), '')