code: def test_cannot_add_assets_with_none_mock_to_dataset(
      asset_with_mock: dict[str, Any],
      asset_without_mock: dict[str, Any],
  ) -> None:
      dataset = Dataset(name=random_hash())
  
      with_mock = Asset(**asset_with_mock)
      with_none_mock = Asset(**asset_without_mock)
  
      dataset.add_asset(with_mock)
  
      with pytest.raises(ValueError) as excinfo:
          dataset.add_asset(with_none_mock)
  
      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 14 for calling a global function with example usage: test_cannot_add_assets_with_none_mock_to_dataset(asset_with_mock, asset_without_mock) without return types