code: def test_temporary_credentials():
      xfail_ssl_issue5601()
      pytest.importorskip("cryptography")
  
      sec = Security.temporary()
      sec_repr = repr(sec)
      fields = ["tls_ca_file"]
      fields.extend(
          f"tls_{role}_{kind}"
          for role in ["client", "scheduler", "worker"]
          for kind in ["key", "cert"]
      )
      for f in fields:
          val = getattr(sec, f)
          assert "\n" in val
          assert val not in sec_repr
  
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 17 for calling a global function with example usage: test_temporary_credentials() without return types