code: def write_to_disk(
      self, context: AuthedServiceContext, uid: UID, data: bytes
  ) -> Union[SyftSuccess, SyftError]:
      result = self.stash.get_by_uid(
          credentials=context.credentials,
          uid=uid,
      )
      if result.is_err():
          return SyftError(message=f"{result.err()}")
  
      obj: Optional[BlobStorageEntry] = result.ok()
  
      if obj is None:
          return SyftError(
              message=f"No blob storage entry exists for uid: {uid}"
          )
  
      try:
          Path(obj.location.path).write_bytes(data)
          return SyftSuccess(message="File successfully saved.")
      except Exception as e:
          return SyftError(
              message=f"Failed to write object to disk: {e}"
          )
  
imports: from pathlib import Path
  from typing import List
  from typing import Optional
  from typing import Union
  import requests
  from ...serde.serializable import serializable
  from ...service.action.action_object import ActionObject
  from ...store.blob_storage import BlobRetrieval
  from ...store.blob_storage.on_disk import OnDiskBlobDeposit
  from ...store.blob_storage.seaweedfs import SeaweedFSBlobDeposit
  from ...store.document_store import DocumentStore
  from ...store.document_store import UIDPartitionKey
  from ...types.blob_storage import AzureSecureFilePathLocation
  from ...types.blob_storage import BlobFileType
  from ...types.blob_storage import BlobStorageEntry
  from ...types.blob_storage import BlobStorageMetadata
  from ...types.blob_storage import CreateBlobStorageEntry
  from ...types.blob_storage import SeaweedSecureFilePathLocation
  from ...types.uid import UID
  from ..context import AuthedServiceContext
  from ..response import SyftError
  from ..response import SyftSuccess
  from ..service import AbstractService
  from ..service import TYPE_TO_SERVICE
  from ..service import service_method
  from ..user.user_roles import GUEST_ROLE_LEVEL
  from .remote_profile import AzureRemoteProfile
  from .remote_profile import RemoteProfileStash
  from .stash import BlobStorageStash
label_desc: Use image node_id 9 for calling the BlobStorageService obj's underlying member method code with example usage: obj.write_to_disk(context, uid, data) and returns: SyftError, SyftError, SyftSuccess, SyftError