code: def test_scientist_can_list_code_assets(
      worker: sy.Worker, faker: Faker
  ) -> None:
      asset_name = random_hash()
      asset = sy.Asset(
          name=asset_name,
          data=np.array([1, 2, 3]),
          mock=sy.ActionObject.empty(),
      )
      dataset_name = random_hash()
      dataset = sy.Dataset(name=dataset_name, asset_list=[asset])
  
      root_client = worker.root_client
  
      password = random_hash()
      credentials = {
          "name": faker.name(),
          "email": faker.email(),
          "password": password,
          "password_verify": password,
      }
  
      root_client.register(**credentials)
  
      guest_client = root_client.guest()
      credentials.pop("name")
      guest_client = guest_client.login(**credentials)
  
      root_client.upload_dataset(dataset=dataset)
  
      asset_input = root_client.datasets.search(name=dataset_name)[
          0
      ].asset_list[0]
  
      @sy.syft_function_single_use(asset=asset_input)
      def func(asset):
          return 0
  
      func.code = dedent(func.code)
  
      request = guest_client.code.request_code_execution(func)
      assert not isinstance(request, sy.SyftError)
  
      status_change = next(
          c
          for c in request.changes
          if (isinstance(c, UserCodeStatusChange))
      )
  
      assert status_change.linked_obj.resolve.assets[0] == asset_input
  
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 6 for calling a global function with example usage: test_scientist_can_list_code_assets(worker, faker) and returns: int