def set_label(self, s, label):
        self.state.body_labels[self.bodies[self.index].segment_id] = label
        self.set_index(self.index + 1)
def _getProvenanceAfterMetadata(self, item, meta, user):
        resp = self.request(path='/item/%s/metadata' % item['_id'],
                            method='PUT', user=user, body=json.dumps(meta),
                            type='application/json')
        self.assertStatusOk(resp)
        return self._getProvenance(item, user)