def METHOD_NAME(self, node):
    for name in node.names:
        if name.asname is not None:
            self._add_declared(name.asname)
        elif name.name == "*":
            raise exceptions.CompileException(
                "'import *' is not supported, since all identifier "
                "names must be explicitly declared.  Please use the "
                "form 'from <modulename> import <name1>, <name2>, "
                "...' instead.",
                **self.exception_kwargs,
            )
        else:
            self._add_declared(name.name)