code: def get_by_name(
      self, canonical_name: str, credentials: SyftVerifyKey
  ) -> Result[SyftObjectMigrationState, str]:
      qks = KlassNamePartitionKey.with_obj(canonical_name)
      return self.query_one(credentials=credentials, qks=qks)
  
imports: from typing import List
  from typing import Optional
  from result import Result
  from ...node.credentials import SyftVerifyKey
  from ...serde.serializable import serializable
  from ...store.document_store import BaseStash
  from ...store.document_store import DocumentStore
  from ...store.document_store import PartitionKey
  from ...store.document_store import PartitionSettings
  from ...types.syft_object import SYFT_OBJECT_VERSION_1
  from ...types.syft_object import SyftMigrationRegistry
  from ...types.syft_object import SyftObject
  from ..action.action_permissions import ActionObjectPermission
label_desc: Use image node_id 3 for calling the SyftMigrationStateStash obj's underlying member method code with example usage: obj.get_by_name(canonical_name, credentials) and returns: self