code: def test_nested_requests(worker, guest_client: User):
      guest_client.api.services.code.submit(test_inner_func)
      guest_client.api.services.code.request_code_execution(
          test_outer_func
      )
  
      root_domain_client = worker.root_client
      request = root_domain_client.requests[-1]
      assert request.code.nested_requests == {
          "test_inner_func": "latest"
      }
      root_domain_client.api.services.request.apply(request.id)
      request = root_domain_client.requests[-1]
  
      codes = root_domain_client.code
      inner = (
          codes[0]
          if codes[0].service_func_name == "test_inner_func"
          else codes[1]
      )
      outer = (
          codes[0]
          if codes[0].service_func_name == "test_outer_func"
          else codes[1]
      )
      assert list(request.code.nested_codes.keys()) == [
          "test_inner_func"
      ]
      (linked_obj, node) = request.code.nested_codes["test_inner_func"]
      assert node == {}
      assert linked_obj.resolve.id == inner.id
      assert outer.status.approved
      assert not inner.status.approved
  
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 9 for calling a global function with example usage: test_nested_requests(worker, guest_client) without return types