code: def merge_dicts(*dicts: dict) -> dict:
      """Merge dictionaries into first one."""
      merged_dict = dicts[0].copy()
      for dict_to_merge in dicts[1:]:
          for key, value in dict_to_merge.items():
              if key not in merged_dict or value == merged_dict[key]:
                  merged_dict[key] = value
              else:
                  raise ValueError(
                      f"Test {key} already has a mark we don't want to overwrite: \n"
                      f"- existing:  {merged_dict[key]} "
                      f"- new value: {value}"
                  )
          merged_dict.update(dict_to_merge)
      return merged_dict
  
file_path: orion/tests/unittests/algo/long/nevergrad/integration_test.py
imports: from __future__ import annotations
  from typing import Any, ClassVar
  import pytest
  from pytest import FixtureRequest, MarkDecorator
  from orion.algo.nevergradoptimizer import NOT_WORKING
  from orion.algo.nevergradoptimizer import NevergradOptimizer, import_optional
  from orion.testing.algo import BaseAlgoTests, TestPhase
  import nevergrad
label_desc: Use image node_id 1 for calling a global function with example usage: merge_dicts() and returns: merged_dict