def visit_functiondef(self, node):
        if node.root().file in 'views':
            args = node.args.args
            if (args and isinstance(args[0], AssName) and
                    args[0].name == 'request'):
                self._is_view_function = True
dataset/ETHPy150Open geerk/django_linter/django_linter/checkers/views.py/ViewsChecker.visit_functiondef/swapped operands of `in`