code: def visibility(self, visibility):
          
          allowed_values = ["OPEN", "PRIVATE"]
          if visibility not in allowed_values:
              raise ValueError(
                  "Invalid value for `visibility` ({0}), must be one of {1}"
                  .format(visibility, allowed_values)
              )
  
          self._visibility = visibility
docs: Sets the visibility of this DatasetPatchRequest.
          Dataset visibility. `OPEN` if the dataset can be seen by any member of data.world. `PRIVATE` if the dataset can be seen by its owner and authorized collaborators.
  
          :param visibility: The visibility of this DatasetPatchRequest.
          :type: str