class ImageManager: def __init__(self) -> None: super().__init__() def upload_file(self, name, path, format): raise NotImplementedError def get(self, id): raise NotImplementedError def download(self, id): raise NotImplementedError def download_to_file(self, id, path): f = open(path, 'wb') f.write(self.download(id)) f.close() def delete(self, id): raise NotImplementedError def list(self): raise NotImplementedError