code: def test_min_max_version_config_errors(field):
      with dask.config.set({f"distributed.comm.tls.{field}": "bad"}):
          with pytest.raises(
              ValueError,
              match="'bad' is not supported, expected one of",
          ):
              sec = Security()
  
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 6 for calling a global function with example usage: test_min_max_version_config_errors(field) without return types