[docs]defmake_image_public(client:Steamship,block:Block)->str:"""Upload a block to a signed URL and return the public URL."""try:fromsteamship.data.workspaceimportSignedUrlfromsteamship.utils.signed_urlsimportupload_to_signed_urlexceptImportError:raiseImportError("The make_image_public function requires the steamship"" package to be installed. Please install steamship"" with `pip install --upgrade steamship`")filepath=str(uuid.uuid4())signed_url=(client.get_workspace().create_signed_url(SignedUrl.Request(bucket=SignedUrl.Bucket.PLUGIN_DATA,filepath=filepath,operation=SignedUrl.Operation.WRITE,)).signed_url)read_signed_url=(client.get_workspace().create_signed_url(SignedUrl.Request(bucket=SignedUrl.Bucket.PLUGIN_DATA,filepath=filepath,operation=SignedUrl.Operation.READ,)).signed_url)upload_to_signed_url(signed_url,block.raw())returnread_signed_url