code: def test_deprecations_on_yaml(tmp_path, key):
      d = {}
      with open(tmp_path / "dask.yaml", "w") as fh:
          yaml.dump({key: 123}, fh)
  
      with pytest.warns(FutureWarning) as info:
          dask.config.refresh(config=d, paths=[tmp_path])
      assert "optimization.fuse.ave-width" in str(info[0].message)
      assert get("optimization.fuse.ave-width", config=d) == 123
  
imports: from __future__ import annotations
  import os
  import site
  import stat
  import sys
  from collections import OrderedDict
  from contextlib import contextmanager
  import pytest
  import yaml
  import dask.config
  from dask.config import _get_paths, canonical_name, collect, collect_env, collect_yaml, config, deserialize, ensure_file, expand_environment_variables, get, merge, pop, refresh, rename, serialize, update, update_defaults
  from dask.utils import tmpfile
label_desc: Use image node_id 39 for calling a global function with example usage: test_deprecations_on_yaml(tmp_path, key) without return types