code: def test_deprecations_on_set(args, kwargs):
      with pytest.warns(FutureWarning) as info:
          with dask.config.set(*args, **kwargs):
              assert (
                  dask.config.get(
                      "distributed.scheduler.allowed-failures"
                  )
                  == 123
              )
  
      assert "distributed.scheduler.allowed-failures" in str(
          info[0].message
      )
  
imports: from __future__ import annotations
  import contextlib
  import logging
  import os
  import re
  import subprocess
  import sys
  import tempfile
  import textwrap
  import pytest
  import yaml
  import dask.config
  from distributed.config import initialize_logging
  from distributed.utils_test import captured_handler, new_config, new_config_file
label_desc: Use image node_id 12 for calling a global function with example usage: test_deprecations_on_set(args, kwargs) without return types