set_label function

Set the "label" attribute of an object