code: def test_kwargs():
      c = {
          "distributed.comm.tls.ca-file": "ca.pem",
          "distributed.comm.tls.scheduler.key": "skey.pem",
          "distributed.comm.tls.scheduler.cert": "scert.pem",
      }
      with dask.config.set(c):
          sec = Security(
              tls_scheduler_cert="newcert.pem",
              require_encryption=True,
              tls_ca_file=None,
              tls_min_version=None,
              tls_max_version=ssl.TLSVersion.TLSv1_3,
              extra_conn_args={"headers": {"Auth": "Token abc"}},
          )
      assert sec.require_encryption is True
      assert sec.tls_ca_file is None
      assert sec.tls_ciphers is None
      assert sec.tls_min_version is ssl.TLSVersion.TLSv1_2
      assert sec.tls_max_version is ssl.TLSVersion.TLSv1_3
      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 == "newcert.pem"
      assert sec.tls_worker_key is None
      assert sec.tls_worker_cert is None
      assert sec.extra_conn_args == {"headers": {"Auth": "Token abc"}}
  
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 8 for calling a global function with example usage: test_kwargs() without return types