code: def test_cannot_set_empty_mock_with_true_mock_is_real(
      asset_with_mock: dict[str, Any], empty_mock: Any
  ) -> None:
      asset = Asset(**asset_with_mock, mock_is_real=True)
      assert asset.mock_is_real
  
      with pytest.raises(ValidationError):
          asset.set_mock(empty_mock, mock_is_real=True)
  
      assert asset.mock is asset_with_mock["mock"]
  
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 11 for calling a global function with example usage: test_cannot_set_empty_mock_with_true_mock_is_real(asset_with_mock, empty_mock) without return types