code: def get_by_service_func_name(
      self, credentials: SyftVerifyKey, service_func_name: str
  ) -> Result[Optional[UserCode], str]:
      qks = QueryKeys(
          qks=[ServiceFuncNamePartitionKey.with_obj(service_func_name)]
      )
      return self.query_all(
          credentials=credentials,
          qks=qks,
          order_by=SubmitTimePartitionKey,
      )
  
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 BaseUIDStoreStash
  from ...store.document_store import DocumentStore
  from ...store.document_store import PartitionSettings
  from ...store.document_store import QueryKeys
  from ...util.telemetry import instrument
  from .user_code import CodeHashPartitionKey
  from .user_code import ServiceFuncNamePartitionKey
  from .user_code import SubmitTimePartitionKey
  from .user_code import UserCode
  from .user_code import UserVerifyKeyPartitionKey
label_desc: Use image node_id 4 for calling the UserCodeStash obj's underlying member method code with example usage: obj.get_by_service_func_name(credentials, service_func_name) and returns: self