code: def test_user_service() -> None:
      test_signing_key = SyftSigningKey.from_string(
          test_signing_key_string
      )
      worker = Worker()
      user_service = worker.get_service(UserService)
  
      # create a user
      new_user = UserCreate(
          email="alice@bob.com",
          name="Alice",
          password="letmein",
          password_verify="letmein",
      )
  
      # create a context
      context = AuthedServiceContext(
          node=worker, credentials=test_signing_key.verify_key
      )
  
      # call the create function
      user_view = user_service.create(
          context=context, user_create=new_user
      )
  
      # get the result
      assert user_view is not None
  
      assert user_view.email == new_user.email
      assert user_view.name == new_user.name
  
      # we have a UID
      assert user_view.id is not None
  
      # we can query the same user again
      user_view_2 = user_service.view(context=context, uid=user_view.id)
  
      # the object matches
      assert user_view_2 is not None
      assert user_view == user_view_2
  
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 4 for calling a global function with example usage: test_user_service() without return types