code: def test_duplicated_user_code(worker, guest_client: User) -> None:
      test_func()
      result = guest_client.api.services.code.request_code_execution(
          test_func
      )
      assert isinstance(result, Request)
      assert len(guest_client.code.get_all()) == 1
  
      # request the exact same code should return an error
      result = guest_client.api.services.code.request_code_execution(
          test_func
      )
      assert isinstance(result, SyftError)
      assert len(guest_client.code.get_all()) == 1
  
      # request the a different function name but same content will also succeed
      test_func_2()
      result = guest_client.api.services.code.request_code_execution(
          test_func_2
      )
      assert isinstance(result, Request)
      assert len(guest_client.code.get_all()) == 2
  
file_path: PySyft/packages/syft/tests/syft/users/user_code_test.py
imports: from textwrap import dedent
  import uuid
  from faker import Faker
  import numpy
  import syft
  from syft.service.action.action_object import ActionObject
  from syft.service.request.request import Request
  from syft.service.request.request import UserCodeStatusChange
  from syft.service.response import SyftError
  from syft.service.user.user import User
label_desc: Use image node_id 4 for calling a global function with example usage: test_duplicated_user_code(worker, guest_client) without return types