code: def get_state(
      self, context: AuthedServiceContext, canonical_name: str
  ) -> Union[bool, SyftError]:
      result = self.stash.get_by_name(
          canonical_name=canonical_name, credentials=context.credentials
      )
  
      if result.is_err():
          return SyftError(message=f"{result.err()}")
  
      return result.ok()
  
file_path: PySyft/packages/syft/src/syft/service/object_search/migration_state_service.py
imports: from typing import Union
  from ...serde.serializable import serializable
  from ...store.document_store import DocumentStore
  from ..context import AuthedServiceContext
  from ..response import SyftError
  from ..service import AbstractService
  from ..service import service_method
  from .object_migration_state import SyftMigrationStateStash
  from .object_migration_state import SyftObjectMigrationState
label_desc: Use image node_id 3 for calling the MigrateStateService obj's underlying member method code with example usage: obj.get_state(context, canonical_name) and returns: result, SyftError