def METHOD_NAME(stmt, fd, ind, attrs):
    do_print = True
    if stmt.search_one('presence') is not None:
        if random() < 0.3:
            do_print = False
    if do_print:
        fd.write(ind + '<%s%s>\n' % (stmt.arg, attrs))
        for c in stmt.i_children:
            emit_stmt(c, fd, ind + '  ')
        fd.write(ind + '</%s>\n' % stmt.arg)