def METHOD_NAME(item, index, libvirtxml):
    """
    Convert an xml object to seclabel tag and xml element.
    """
    if isinstance(item, Seclabel):
        return 'seclabel', item
    elif isinstance(item, dict):
        seclabel = Seclabel()
        seclabel.setup_attrs(**item)
        return 'seclabel', seclabel
    else:
        raise xcepts.LibvirtXMLError("Expected a list of Seclabel "
                                     "instances, not a %s" % str(item))