<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_license(self, license, **kwargs):
 """Add a new license. Args: license (str):
 The license string **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabPostError: If the server cannot perform the request Returns: dict: The new license information """

        data = {'license': license}
        return self.http_post('/license', post_data=data, **kwargs)