code: def mime_type(self, type_: Optional[MimeType] = None) -> str:
          
          key = self._validate_enum(item=type_, enum=MimeType)
          types = MIME_TYPES[key]
          return self.random.choice(types)
docs: Get a random mime type from list.
  
          :param type_: Enum object MimeType.
          :return: Mime type.