code: def test_min_max_version_from_config(min_ver, max_ver):
      versions = {
          1.2: ssl.TLSVersion.TLSv1_2,
          1.3: ssl.TLSVersion.TLSv1_3,
      }
      min_ver_val = versions.get(min_ver, ssl.TLSVersion.TLSv1_2)
      max_ver_val = versions.get(max_ver)
      c = {
          "distributed.comm.tls.min-version": min_ver,
          "distributed.comm.tls.max-version": max_ver,
      }
      with dask.config.set(c):
          sec = Security()
      assert sec.tls_min_version == min_ver_val
      assert sec.tls_max_version == max_ver_val
  
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 5 for calling a global function with example usage: test_min_max_version_from_config(min_ver, max_ver) without return types