def METHOD_NAME(self, node: ast.Import) -> None:
    for alias in node.names:
        if alias.name.split(".")[0] in S003_modules:
            self.errors.append((node.lineno, node.col_offset, S003_msg))
        elif (
            "tests/" not in self.filename
            and "fixtures/" not in self.filename
            and "sentry/testutils/" not in self.filename
            and "sentry.testutils" in alias.name
        ):
            self.errors.append((node.lineno, node.col_offset, S007_msg))
    self.generic_visit(node)