code: def _temp_storage(pickle_path: Path | str) -> BaseStorageProtocol:
      """Creates a temporary storage."""
      return setup_storage(
          {
              "type": "legacy",
              "database": {
                  "type": "pickleddb",
                  "host": str(pickle_path),
              },
          }
      )
  
imports: from __future__ import annotations
  import functools
  import random
  from pathlib import Path
  from typing import Callable
  import numpy
  import pytest
  from typing_extensions import ParamSpec
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Space
  from orion.algo.tpe import TPE
  from orion.client import build_experiment, workon
  from orion.client.experiment import ExperimentClient
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.worker.trial import Trial
  from orion.core.worker.warm_start.knowledge_base import KnowledgeBase
  from orion.storage.base import BaseStorageProtocol, setup_storage
label_desc: Use image node_id 2 for calling a global function with example usage: _temp_storage(pickle_path) and returns: setup_storage