class_docstr: Test Benchmark creation
code: def test_create_with_executor(
      self, benchmark_config, benchmark_config_py
  ):
      with OrionState() as cfg:
          config = copy.deepcopy(benchmark_config_py)
          bm1 = get_or_create_benchmark(cfg.storage, **config)
          bm1.close()
  
          assert bm1.configuration == benchmark_config
          assert (
              bm1.executor.n_workers
              == orion.core.config.worker.n_workers
          )
  
          with Joblib(n_workers=2, backend="threading") as executor:
              config["executor"] = executor
              bm2 = get_or_create_benchmark(cfg.storage, **config)
  
              assert bm2.configuration == benchmark_config
              assert bm2.executor.n_workers == executor.n_workers
              assert orion.core.config.worker.n_workers != 2
  
imports: import copy
  import logging
  import pytest
  import orion.benchmark.benchmark_client
  import orion.core
  from orion.benchmark.assessment import AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import CarromTable, RosenBrock
  from orion.client import ExperimentClient
  from orion.core.utils.exceptions import NoConfigurationError
  from orion.executor.joblib_backend import Joblib
  from orion.storage.base import setup_storage
  from orion.testing.state import OrionState
label_desc: Use image node_id 11 for calling the TestCreateBenchmark obj's underlying member method code with example usage: obj.test_create_with_executor(benchmark_config, benchmark_config_py) without return types