def get_imports(self, module, return_fqn=False):
<EOL>imports = set()<EOL>raw_imports = ast_imports(module.path)<EOL>for import_entry in raw_imports:<EOL><INDENT>full = "<STR_LIT:.>".join(s for s in import_entry[:<NUM_LIT:2>] if s)<EOL>import_level = import_entry[<NUM_LIT:3>]<EOL>if import_level:<EOL><INDENT>intra = '<STR_LIT:.>'.join(module.fqn[:-import_level] + [full])<EOL>imported = self._get_imported_module(intra)<EOL><DEDENT>else:<EOL><INDENT>imported = self._get_imported_module(full)<EOL><DEDENT>if imported:<EOL><INDENT>if return_fqn:<EOL><INDENT>imports.add('<STR_LIT:.>'.join(imported.fqn))<EOL><DEDENT>else:<EOL><INDENT>imports.add(imported.path)<EOL><DEDENT><DEDENT><DEDENT>return imports<EOL>
return set of imported modules that are in self
        :param module: PyModule
        :return: (set - str) of path names