def set_labels(self, *labels):
assert all(isinstance(element, (github.Label.Label, str, unicode)) for element in labels), labels<EOL>post_parameters = [label.name if isinstance(label, github.Label.Label) else label for label in labels]<EOL>headers, data = self._requester.requestJsonAndCheck(<EOL>"<STR_LIT>",<EOL>self.url + "<STR_LIT>",<EOL>input=post_parameters<EOL>)<EOL>
:calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
:param labels: list of :class:`github.Label.Label` or strings
:rtype: None