def ast_imports(file_path):
with open(file_path, '<STR_LIT:r>') as fp:<EOL><INDENT>text = fp.read()<EOL><DEDENT>mod_ast = ast.parse(text, file_path)<EOL>finder = _ImportsFinder()<EOL>finder.visit(mod_ast)<EOL>return finder.imports<EOL>
get list of import from python module
    :return: (list - tuple) (module, name, asname, level)