I don't see a test case with an import inside a function. is it supported?