def METHOD_NAME(
    config_dict: Dict[str, Any],
    benchmark_name: str) -> benchmark_spec.BenchmarkSpec:
  config_spec = benchmark_config_spec.BenchmarkConfigSpec(
      benchmark_name, flag_values=FLAGS, **config_dict)
  benchmark_module = next((b for b in linux_benchmarks.BENCHMARKS
                           if b.BENCHMARK_NAME == benchmark_name))
  return benchmark_spec.BenchmarkSpec(benchmark_module, config_spec, 'name0')