class_docstr: Test Benchmark creation
docstr: Test creation with assessment or task does not exist or not loaded
docstr_tok: ["Test","creation","with","assessment","or","task","does","not","exist","or","not","loaded"]
code: def test_create_with_not_loaded_targets(self, benchmark_config):
      """Test creation with assessment or task does not exist or not loaded"""
  
      cfg_invalid_assess = copy.deepcopy(benchmark_config)
      cfg_invalid_assess["targets"][0]["assess"]["idontexist"] = {
          "repetitions": 2
      }
  
      with OrionState(benchmarks=cfg_invalid_assess) as cfg:
          with pytest.raises(NotImplementedError) as exc:
              get_or_create_benchmark(
                  cfg.storage,
                  benchmark_config["name"],
              ).close()
          assert (
              "Could not find implementation of BenchmarkAssessment"
              in str(exc.value)
          )
  
      cfg_invalid_task = copy.deepcopy(benchmark_config)
      cfg_invalid_task["targets"][0]["task"]["idontexist"] = {
          "max_trials": 2
      }
  
      with OrionState(benchmarks=cfg_invalid_task) as cfg:
          with pytest.raises(NotImplementedError) as exc:
              get_or_create_benchmark(
                  cfg.storage,
                  benchmark_config["name"],
              )
          assert (
              "Could not find implementation of BenchmarkTask"
              in str(exc.value)
          )
  
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 7 for calling the TestCreateBenchmark obj's underlying member method code with example usage: obj.test_create_with_not_loaded_targets(benchmark_config) without return types