code: def knowledge_base(tmp_path: Path):
      """Fixture that creates a temporary storage with some trials we want, and then passes it
      to the KB.
      """
      db = PickledDB(host=f"{tmp_path}/db.pkl")
      storage = Legacy(database=db, setup=True)
      # TODO: Add experiments useful for tests in here.
      knowledge_base = KnowledgeBase(storage)
      return knowledge_base
  
file_path: orion/tests/unittests/core/worker/warm_start/test_knowledge_base.py
imports: from __future__ import annotations
  from pathlib import Path
  import pytest
  from orion.benchmark.task import RosenBrock
  from orion.client import build_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.worker.experiment_config import ExperimentConfig
  from orion.core.worker.warm_start import KnowledgeBase
  from orion.storage.base import BaseStorageProtocol
  from orion.storage.legacy import Legacy
label_desc: Use image node_id 1 for calling a global function with example usage: knowledge_base(tmp_path) and returns: knowledge_base