code: def _register_benchmark(storage, benchmark):
      benchmark.metadata["datetime"] = datetime.datetime.utcnow()
      config = benchmark.configuration
      # This will raise DuplicateKeyError if a concurrent experiment with
      # identical (name, metadata.user) is written first in the database.
      storage.create_benchmark(config)
  
file_path: orion/src/orion/benchmark/benchmark_client.py
imports: import datetime
  import logging
  from orion.benchmark import Benchmark, Study
  from orion.benchmark.assessment.base import bench_assessment_factory
  from orion.benchmark.task.base import bench_task_factory
  from orion.core.io.database import DuplicateKeyError
  from orion.core.utils.exceptions import NoConfigurationError
label_desc: Use image node_id 8 for calling a global function with example usage: _register_benchmark(storage, benchmark) without return types