code: def client_with_benchmark():
      """Mock the falcon.API instance for testing with an in pickledDB database.
  
      If breaking changes in the benchmark causes issue with the saved database, simply
      delete the benchmark_db.pkl file and return the tests. The file will be recreated automatically.
      The new version of the file should be commit with git.
      """
      config_storage = {
          "type": "legacy",
          "database": {
              "type": "pickleddb",
              "host": os.path.join(
                  os.path.dirname(os.path.abspath(__file__)),
                  "benchmark_db.pkl",
              ),
          },
      }
      storage = setup_storage(config_storage)
      client = testing.TestClient(
          WebApi(storage, {"storage": config_storage})
      )
  
      _create_benchmark(storage)
  
      return client
  
imports: import json
  import os
  import pytest
  from falcon import testing
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import Branin, CarromTable, EggHolder
  from orion.serving.webapi import WebApi
  from orion.storage.base import setup_storage
label_desc: Use image node_id 1 for calling a global function with example usage: client_with_benchmark() and returns: client