def METHOD_NAME(self, url: str):
    urlprefix = f"https://{self.bucket}.s3-{self.region}.amazonaws.com/"
    assert url.startswith(urlprefix)
    key = url[len(urlprefix) :]
    yield io.BytesIO(self.objects[key])