def METHOD_NAME(self, node):
    if not isinstance(node.parent, astroid.scoped_nodes.Module):
        return
    if not node.decorators:
        self.add_message("missing-permission-required", node=node)
        return
    found_permissions_required = False
    for decorator in node.decorators.nodes:
        if isinstance(decorator, astroid.Call):
            if decorator.func.name in self.allowed_decorators:
                found_permissions_required = True
                break
            if (
                decorator.func.name == "method_decorator"
                and isinstance(decorator.args[0], astroid.Call)
                and decorator.args[0].func.name in self.allowed_decorators
            ):
                found_permissions_required = True
                break
    if not found_permissions_required:
        self.add_message("missing-permission-required", node=node)