def is_tuple_end(self, extra_end_rules=None):
        """Are we at the end of a tuple?"""
        if ('variable_end', 'block_end', 'rparen') in self.stream.current.type:
            return True
        elif extra_end_rules is not None:
            return self.stream.current.test_any(extra_end_rules)
        return False
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/parser.py/Parser.is_tuple_end/swapped operands of `in`