code: def test_from_config():
      c = {
          "distributed.comm.tls.ca-file": "ca.pem",
          "distributed.comm.tls.scheduler.key": "skey.pem",
          "distributed.comm.tls.scheduler.cert": "scert.pem",
          "distributed.comm.tls.worker.cert": "wcert.pem",
          "distributed.comm.tls.ciphers": FORCED_CIPHER,
          "distributed.comm.require-encryption": True,
      }
  
      with dask.config.set(c):
          sec = Security()
  
      assert sec.require_encryption is True
      assert sec.tls_ca_file == "ca.pem"
      assert sec.tls_ciphers == FORCED_CIPHER
      assert sec.tls_client_key is None
      assert sec.tls_client_cert is None
      assert sec.tls_scheduler_key == "skey.pem"
      assert sec.tls_scheduler_cert == "scert.pem"
      assert sec.tls_worker_key is None
      assert sec.tls_worker_cert == "wcert.pem"
  
imports: from __future__ import annotations
  import ssl
  from contextlib import contextmanager
  import pytest
  import dask
  from distributed.comm import connect, listen
  from distributed.security import Security
  from distributed.utils_test import gen_test, get_cert, xfail_ssl_issue5601
label_desc: Use image node_id 4 for calling a global function with example usage: test_from_config() without return types