@contextfilter
def name_filter(ctx, value):
    if isinstance(value, JipUndefined):
        return (value._undefined_name) % "${%s|name}"
    from os.path import basename
    try:
        value = __resolve_options(ctx, value)

        if not isinstance(value, Option):
            v = str(value)
        else:
            v = value.get()
        return basename(v)
    except:
        return value
dataset/ETHPy150Open thasso/pyjip/jip/templates.py/name_filter/swapped operands of `%`