code: def test_with_multidim(algorithm):
      """Test a scenario with a dimension shape > 1."""
      space = copy.deepcopy(space_with_fidelity)
      space["x"] = "uniform(-50, 50, shape=(2, 1))"
      MAX_TRIALS = 30
  
      exp = workon(
          multidim_rosenbrock,
          space,
          algorithm=algorithm,
          max_trials=MAX_TRIALS,
      )
  
      assert exp.configuration["algorithm"] == algorithm
  
      trials = exp.fetch_trials()
      assert len(trials) >= 25 or exp.algorithm.is_done
      completed_trials = exp.fetch_trials_by_status("completed")
      assert len(completed_trials) >= MAX_TRIALS or len(
          completed_trials
      ) == len(trials)
  
      trials = completed_trials
      results = [trial.objective.value for trial in trials]
      assert all(trial.objective is not None for trial in trials)
      best_trial = min(trials, key=lambda trial: trial.objective.value)
  
      assert best_trial.objective.name == "objective"
      assert abs(best_trial.objective.value - 23.4) < 10
      assert len(best_trial.params) == 2
      fidelity = best_trial._params[0]
      assert fidelity.name == "noise"
      assert fidelity.type == "fidelity"
      assert fidelity.value in exp.space["noise"]
      param = best_trial._params[1]
      assert param.name == "x"
      assert param.type == "real"
  
imports: from __future__ import annotations
  import copy
  import os
  from pathlib import Path
  import numpy
  import pytest
  from orion.algo.pbt.pb2_utils import import_optional
  from orion.client import build_experiment, create_experiment, workon
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils.module_import import ImportOptional
  from orion.core.worker.algo_wrappers import AlgoWrapper
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.core.worker.trial import Trial
  from orion.storage.base import BaseStorageProtocol
  from orion.benchmark.task.base import BenchmarkTask
label_desc: Use image node_id 11 for calling a global function with example usage: test_with_multidim(algorithm) without return types