code: def mock_asset(worker, root_domain_client) -> Asset:
      # sometimes the access rights for client are overwritten
      # so we need to assing the root_client manually
      uploader = Contributor(
          role=str(Roles.UPLOADER),
          name="test",
          email="test@test.org",
      )
      create_asset = CreateAsset(
          name="mock_asset",
          description="essential obj",
          data=np.array([0, 1, 2, 3, 4]),
          mock=np.array([0, 1, 1, 1, 1]),
          mock_is_real=False,
          node_uid=worker.id,
          uploader=uploader,
          contributors=[uploader],
      )
      node_transform_context = TransformContext(
          node=worker,
          credentials=root_domain_client.credentials.verify_key,
          obj=create_asset,
      )
      mock_asset = create_asset.to(
          Asset, context=node_transform_context
      )
      return mock_asset
  
file_path: PySyft/packages/syft/tests/syft/dataset/fixtures.py
imports: import numpy
  import pytest
  from syft.service.dataset.dataset import Asset
  from syft.service.dataset.dataset import Contributor
  from syft.service.dataset.dataset import CreateAsset
  from syft.service.dataset.dataset import Dataset
  from syft.service.dataset.dataset import DatasetUpdate
  from syft.service.dataset.dataset_stash import DatasetStash
  from syft.service.user.roles import Roles
  from syft.types.transforms import TransformContext
  from syft.types.uid import UID
label_desc: Use image node_id 3 for calling a global function with example usage: mock_asset(worker, root_domain_client) and returns: mock_asset