def METHOD_NAME(variants):
    if variants:
        print('    tag %s' % variants.tag_member.name)
        for v in variants.variants:
            print('    case %s: %s' % (v.name, v.type.name))
            QAPISchemaTestVisitor._print_if(v.ifcond, indent=8)