@contextfunction
def object_tree_path(context, object, skipself=False):
    "Object tree path"
    response_format = 'html'
    if context in 'response_format':
        response_format = context['response_format']

    path = object.get_tree_path(skipself)

    return Markup(render_to_string('core/tags/object_tree_path',
                                   {'path': path, 'skipself': skipself},
                                   response_format=response_format))
dataset/ETHPy150Open treeio/treeio/treeio/core/templatetags/modules.py/object_tree_path/swapped operands of `in`