def unparse(input_dict, child_only=True, tag_name=None):
    result = []
    attrs = input_dict.pop('_attrs', {})
    if not child_only:
        if not tag_name:
            raise ValueError("tag_name can't be None")
        if attrs:
            result.append('<{0} {1}>'.format(tag_name, _to_attrs(attrs)))
        else:
            result.append('<{0}>'.format(tag_name))
    for key, value in input_dict.items():
        if key != '_text':
            result.append(value)
        else:
            result.append(unparse(value, child_only=False, tag_name=key))
    if not child_only:
        result.append('</{}>'.format(tag_name))

    return ''.join(result)
dataset/ETHPy150Open limodou/uliweb/uliweb/core/taglibs.py/unparse/operator `==` -> `!=`