code: def license(self, license):
          
          allowed_values = ["Public Domain", "PDDL", "CC-0", "CC-BY", "ODC-BY", "CC-BY-SA", "ODC-ODbL", "CC BY-NC", "CC BY-NC-SA", "Other"]
          if license not in allowed_values:
              raise ValueError(
                  "Invalid value for `license` ({0}), must be one of {1}"
                  .format(license, allowed_values)
              )
  
          self._license = license
docs: Sets the license of this DatasetPatchRequest.
          Dataset license. Find additional info for allowed values [here](https://data.world/license-help).
  
          :param license: The license of this DatasetPatchRequest.
          :type: str