code: def test_worker_handle_api_request(
      path: str, kwargs: Dict, blocking: bool, n_processes: int
  ) -> None:
      node_uid = UID()
      test_signing_key = SyftSigningKey.from_string(
          test_signing_key_string
      )
  
      worker = Worker(
          name="test-domain-1",
          processes=n_processes,
          id=node_uid,
          signing_key=test_signing_key,
      )
      root_client = worker.root_client
      assert root_client.api is not None
  
      root_client.guest()
  
      # TODO: 🟡 Fix: root_client.guest is overriding root_client.
      root_client = worker.root_client
  
      api_call = SyftAPICall(
          node_uid=node_uid,
          path=path,
          args=[],
          kwargs=kwargs,
          blocking=blocking,
      )
      # should fail on unsigned requests
      result = worker.handle_api_call(api_call).message.data
      assert isinstance(result, SyftError)
  
      signed_api_call = api_call.sign(root_client.api.signing_key)
  
      # should work on signed api calls
      result = worker.handle_api_call(signed_api_call).message.data
      assert not isinstance(result, SyftError)
  
      # Guest client should not have access to the APIs
      guest_signed_api_call = api_call.sign(root_client.api.signing_key)
      result = worker.handle_api_call(guest_signed_api_call).message
      assert not isinstance(result, SyftAttributeError)
  
      # should fail on altered requests
      bogus_api_call = signed_api_call
      bogus_api_call.serialized_message += b"hacked"
  
      result = worker.handle_api_call(bogus_api_call).message.data
      assert isinstance(result, SyftError)
  
imports: from typing import Any
  from typing import Dict
  from nacl.exceptions import BadSignatureError
  import numpy
  import pytest
  from result import Ok
  import syft
  from syft.client.api import SignedSyftAPICall
  from syft.client.api import SyftAPICall
  from syft.node.credentials import SIGNING_KEY_FOR
  from syft.node.credentials import SyftSigningKey
  from syft.node.credentials import SyftVerifyKey
  from syft.node.worker import Worker
  from syft.service.action.action_object import ActionObject
  from syft.service.action.action_store import DictActionStore
  from syft.service.context import AuthedServiceContext
  from syft.service.queue.queue_stash import QueueItem
  from syft.service.response import SyftAttributeError
  from syft.service.response import SyftError
  from syft.service.user.user import User
  from syft.service.user.user import UserCreate
  from syft.service.user.user import UserView
  from syft.service.user.user_service import UserService
  from syft.types.uid import UID
label_desc: Use image node_id 10 for calling a global function with example usage: test_worker_handle_api_request(path, kwargs, blocking, n_processes) without return types