code: def refresh(
      config: dict = config,
      defaults: list[Mapping] = defaults,
      **kwargs,
  ) -> None:
      """
      Update configuration by re-reading yaml files and env variables
  
      This mutates the global dask.config.config, or the config parameter if
      passed in.
  
      This goes through the following stages:
  
      1.  Clearing out all old configuration
      2.  Updating from the stored defaults from downstream libraries
          (see update_defaults)
      3.  Updating from yaml files and environment variables
      4.  Automatically renaming deprecated keys (with a warning)
  
      Note that some functionality only checks configuration once at startup and
      may not change behavior, even if configuration changes.  It is recommended
      to restart your python process if convenient to ensure that new
      configuration changes take place.
  
      See Also
      --------
      dask.config.collect: for parameters
      dask.config.update_defaults
      """
      config.clear()
  
      for d in defaults:
          update(config, d, priority="old")
  
      update(config, collect(**kwargs))
      rename(deprecations, config)
  
imports: from __future__ import annotations
  import ast
  import base64
  import builtins
  import json
  import os
  import site
  import sys
  import threading
  import warnings
  from collections.abc import Mapping, Sequence
  from typing import Any, Literal
  import yaml
  from dask.typing import no_default
label_desc: Use image node_id 10 for calling a global function with example usage: refresh(config, defaults) without return types