code: def test_fetch_config_deprecate_tricky_names(
      monkeypatch, config_file
  ):
      """Verify fetch_config assigns values properly for the similar names."""
  
      def mocked_config(file_object):
          return {
              "experiment": {"worker_trials": "should_be_ignored"},
              "max_trials": "exp_max_trials",
              "max_broken": "exp_max_broken",
              "worker_trials": "worker_max_trials",
              "name": "exp_name",
          }
  
      monkeypatch.setattr("yaml.safe_load", mocked_config)
  
      config = resolve_config.fetch_config({"config": config_file})
  
      assert config == {
          "experiment": {
              "name": "exp_name",
              "max_trials": "exp_max_trials",
              "max_broken": "exp_max_broken",
          },
          "worker": {"max_trials": "worker_max_trials"},
      }
  
imports: import hashlib
  import logging
  import os
  import shutil
  import git
  import pytest
  import orion.core
  import orion.core.io.resolve_config
label_desc: Use image node_id 19 for calling a global function with example usage: test_fetch_config_deprecate_tricky_names(monkeypatch, config_file) and returns: dict