@register.tag(name="check_if_has_access_to")
def check_if_has_access_to_option(parser, token):
    bits = token.split_contents()
    if 4 != len(bits):
        raise TemplateSyntaxError('%r expects 4 arguments' % bits[0])
    if bits[-2] != 'as':
        raise TemplateSyntaxError(
            bits[0] % '%r expects "as" as the second argument')
    key = bits[1]
    varname = bits[-1]
    return check_if_has_access_to_option_node(key, varname)
dataset/ETHPy150Open zorna/zorna/zorna/site/templatetags/site_tags.py/check_if_has_access_to_option/swapped operands of `%`