code: def mock_dataset(
      root_verify_key, mock_dataset_stash, mock_asset
  ) -> Dataset:
      uploader = Contributor(
          role=str(Roles.UPLOADER),
          name="test",
          email="test@test.org",
      )
      mock_dataset = Dataset(
          id=UID(),
          name="test_dataset",
          uploader=uploader,
          contributors=[uploader],
      )
      mock_dataset.asset_list.append(mock_asset)
      result = mock_dataset_stash.partition.set(
          root_verify_key, mock_dataset
      )
      mock_dataset = result.ok()
      return mock_dataset
  
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 4 for calling a global function with example usage: mock_dataset(root_verify_key, mock_dataset_stash, mock_asset) and returns: mock_dataset