def label_remove_hosts(id, hosts):
 host_objs = models.Host.smart_get_bulk(hosts)
 models.Label.smart_get(id).host_set.remove(*host_objs)

def label_remove_hosts ( id , hosts ) : host_objs = models . Host . smart_get_bulk ( hosts ) models . Label . smart_get ( id ) . host_set . remove ( * host_objs )
remove hosts from label .