code: def test_pop():
      config = {"foo": {"ba-r": 1, "baz": 2}, "asd": 3}
      with pytest.raises(KeyError):
          pop("x", config=config)
      assert pop("x", default=4, config=config) == 4
      assert pop("foo.ba_r", config=config) == 1
      assert pop("asd", config=config) == 3
      assert config == {"foo": {"baz": 2}}
  
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 26 for calling a global function with example usage: test_pop() without return types