':calls: `POST /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_
:param name: string
:param color: string
:rtype: :class:`github.Label.Label`'

def create_label(self, name, color):

    assert isinstance(name, (str, unicode)), name
    assert isinstance(color, (str, unicode)), color
    post_parameters = {'name': name, 'color': color}
    (headers, data) = self._requester.requestJsonAndCheck('POST', (self.url + '/labels'), input=post_parameters)
    return github.Label.Label(self._requester, headers, data, completed=True)
