code: def test_seeding(algorithm: dict):
      """Test seeding works properly."""
  
      rosenbrock_with_fidelity.initialize()
      exp = workon(
          rosenbrock_with_fidelity,
          space_with_fidelity,
          algorithm=algorithm,
          max_trials=30,
      )
  
      assert exp.configuration["algorithm"] == algorithm
  
      trials = exp.fetch_trials()
  
      rosenbrock_with_fidelity.initialize()
      rep_exp = workon(
          rosenbrock_with_fidelity,
          space_with_fidelity,
          algorithm=algorithm,
          max_trials=30,
      )
  
      assert rep_exp.configuration["algorithm"] == algorithm
  
      rep_trials = rep_exp.fetch_trials()
  
      assert trials == rep_trials
  
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 10 for calling a global function with example usage: test_seeding(algorithm) without return types