class_docstr: Test Benchmark creation
docstr: Test creation with same name but different configure
docstr_tok: ["Test","creation","with","same","name","but","different","configure"]
code: def test_create_with_different_configure(
      self, benchmark_config_py, caplog
  ):
      """Test creation with same name but different configure"""
      with OrionState() as cfg:
          config = copy.deepcopy(benchmark_config_py)
          bm1 = get_or_create_benchmark(cfg.storage, **config)
          bm1.close()
  
          config = copy.deepcopy(benchmark_config_py)
          config["targets"][0]["assess"] = [AverageResult(2)]
  
          with caplog.at_level(
              logging.WARNING, logger="orion.benchmark.benchmark_client"
          ):
              bm2 = get_or_create_benchmark(cfg.storage, **config)
              bm2.close()
  
          assert bm2.configuration == bm1.configuration
          assert (
              "Benchmark with same name is found but has different configuration, "
              "which will be used for this creation." in caplog.text
          )
  
          caplog.clear()
          config = copy.deepcopy(benchmark_config_py)
          config["targets"][0]["task"] = [
              RosenBrock(26, dim=3),
              CarromTable(20),
          ]
          with caplog.at_level(
              logging.WARNING, logger="orion.benchmark.benchmark_client"
          ):
              bm3 = get_or_create_benchmark(cfg.storage, **config)
              bm3.close()
  
          assert bm3.configuration == bm1.configuration
          assert (
              "Benchmark with same name is found but has different configuration, "
              "which will be used for this creation." in caplog.text
          )
  
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 3 for calling the TestCreateBenchmark obj's underlying member method code with example usage: obj.test_create_with_different_configure(benchmark_config_py, caplog) without return types