code: def get_by_name(
      self, credentials: SyftVerifyKey, pool_name: str
  ) -> Result[Optional[WorkerPool], str]:
      qks = QueryKeys(qks=[PoolNamePartitionKey.with_obj(pool_name)])
      return self.query_one(credentials=credentials, qks=qks)
  
imports: from typing import List
  from typing import Optional
  from typing import Union
  from result import Result
  from ...node.credentials import SyftVerifyKey
  from ...serde.serializable import serializable
  from ...store.document_store import BaseUIDStoreStash
  from ...store.document_store import DocumentStore
  from ...store.document_store import PartitionKey
  from ...store.document_store import PartitionSettings
  from ...store.document_store import QueryKeys
  from ...types.uid import UID
  from ..action.action_permissions import ActionObjectPermission
  from ..action.action_permissions import ActionPermission
  from .worker_pool import WorkerPool
label_desc: Use image node_id 2 for calling the SyftWorkerPoolStash obj's underlying member method code with example usage: obj.get_by_name(credentials, pool_name) and returns: self