code: def _ReadOperatingSystemArtifactValues(self, operating_system_values):
      
      if not operating_system_values:
        raise errors.MalformedPresetError('Missing operating system values.')
  
      family = operating_system_values.get('family', None)
      product = operating_system_values.get('product', None)
      version = operating_system_values.get('version', None)
  
      if not family and not product:
        raise errors.MalformedPresetError(
            'Invalid operating system missing family and product.')
  
      return artifacts.OperatingSystemArtifact(
          family=family, product=product, version=version)
docs: Reads an operating system artifact from a dictionary.
  
      Args:
        operating_system_values (dict[str, object]): operating system values.
  
      Returns:
        OperatingSystemArtifact: an operating system artifact attribute container.
  
      Raises:
        MalformedPresetError: if the format of the operating system values are
            not set or incorrect.