def _is_from_future_import(stmt, name):
try:<EOL><INDENT>module = stmt.do_import_module(stmt.modname)<EOL><DEDENT>except astroid.AstroidBuildingException:<EOL><INDENT>return None<EOL><DEDENT>for local_node in module.locals.get(name, []):<EOL><INDENT>if isinstance(local_node, astroid.ImportFrom) and local_node.modname == FUTURE:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return None<EOL>
Check if the name is a future import from another module.