def createlabel(self, project_id, name, color):

        data = {"name": name, "color": color}
        request = requests.post("{0}/{1}/labels".format(self.projects_url, project_id), data=data,
                                verify=self.verify_ssl, auth=self.auth, headers=self.headers, timeout=self.timeout)
        if request.status_code == 201:
            return request.json()
        else:
            return False
Creates a new label for given repository with given name and color.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.createlabel