code: def test_domain_client_cannot_upload_dataset_with_non_mock(
      worker: Worker,
  ) -> None:
      assets = [Asset(**make_asset_with_mock()) for _ in range(10)]
      dataset = Dataset(name=random_hash(), asset_list=assets)
  
      dataset.asset_list[0].mock = None
  
      root_domain_client = worker.root_client
  
      with pytest.raises(ValueError) as excinfo:
          root_domain_client.upload_dataset(dataset)
  
      assert _ASSET_WITH_NONE_MOCK_ERROR_MESSAGE in str(excinfo.value)
  
imports: import random
  from typing import Any
  from uuid import uuid4
  import numpy
  from pydantic import ValidationError
  import pytest
  import syft
  from syft.node.worker import Worker
  from syft.service.action.action_object import ActionObject
  from syft.service.dataset.dataset import CreateAsset
  from syft.service.dataset.dataset import CreateDataset
  from syft.service.dataset.dataset import _ASSET_WITH_NONE_MOCK_ERROR_MESSAGE
  from syft.service.response import SyftError
  from syft.service.response import SyftSuccess
  from syft.types.twin_object import TwinMode
label_desc: Use image node_id 16 for calling a global function with example usage: test_domain_client_cannot_upload_dataset_with_non_mock(worker) without return types