class_docstr: Tests for the multi-task wrapper.
class_docstr_tok: ["Tests","for","the","multi-task","wrapper","."]
code: def test_transform_space_already_has_taskid(
      self, knowledge_base: KnowledgeBase
  ):
      with pytest.raises(
          RuntimeError, match="Space already has a task_id dimension"
      ):
          MultiTaskWrapper.transform_space(
              _space({"task_id": "uniform(0, 10, discrete=True)"}),
              knowledge_base=knowledge_base,
          )
  
imports: from __future__ import annotations
  import copy
  import random
  from typing import Any, Callable, Sequence
  import numpy
  import pytest
  from orion.algo.base import BaseAlgorithm
  from orion.algo.gridsearch import GridSearch
  from orion.algo.space import Space
  from orion.algo.tpe import TPE
  from orion.client import build_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.worker.algo_wrappers.insist_suggest import InsistSuggest
  from orion.core.worker.algo_wrappers.space_transform import SpaceTransform
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.experiment_config import ExperimentConfig
  from orion.core.worker.primary_algo import create_algo
  from orion.core.worker.trial import Trial
  from orion.core.worker.warm_start.knowledge_base import KnowledgeBase
  from orion.core.worker.warm_start.multi_task_wrapper import MultiTaskWrapper
  from orion.storage.base import BaseStorageProtocol
  from orion.testing.dummy_algo import FixedSuggestionAlgo
  from orion.algo.random import Random
  from orion.core.worker.warm_start import WarmStarteable
label_desc: Use image node_id 10 for calling the TestMultiTaskWrapper obj's underlying member method code with example usage: obj.test_transform_space_already_has_taskid(knowledge_base) without return types