docs: def set(self, uuid, content, encoding="utf-8"):
          # type: (UUID, Any, Optional[Text]) -> None
          """Store binary content with uuid as key.
  
          :param:uuid: :class:`UUID` instance
          :param:content: string, bytes, or any object with a `read()` method
          :param:encoding: encoding to use when content is Unicode
          """
          dest = self.abs_path(uuid)
          if not dest.parent.exists():
              dest.parent.mkdir(0o775, parents=True)
  
          if hasattr(content, "read"):
              content = content.read()
  
          mode = "tw"
          if not isinstance(content, str):
              mode = "bw"
              encoding = None
  
          with dest.open(mode, encoding=encoding) as f:
              f.write(content)