code: def weight_unit(self, weight_unit):
          
          allowed_values = ["pound", "kilogram"]  # noqa: E501
          if weight_unit is not None and weight_unit not in allowed_values:
              raise ValueError(
                  "Invalid value for `weight_unit` ({0}), must be one of {1}"  # noqa: E501
                  .format(weight_unit, allowed_values)
              )
  
          self._weight_unit = weight_unit
docs: Sets the weight_unit of this MeasurementSettings.
  
  
          :param weight_unit: The weight_unit of this MeasurementSettings.
          :type: str