code: def setData(self, type: str, data: str) -> None:
          
          type = normalize_type(type)
          if type in self.__data:
              del self.__data[type]
          self.__data[type] = data
docs: Set data of type format.
  
          :arg str type: Data format of the data, like 'text/plain'.