code: def test_agent_never_connect() -> None:
      for _ in range(15):
          if os.path.exists("/tmp/agent-connection-lost"):
              break
          time.sleep(1)
      else:
          pytest.fail(
              "Did not find expected file from agent connection loss hook"
          )
  
file_path: determined/e2e_tests/tests/cluster/test_agent.py
imports: import os
  import time
  import pytest
  import determined
  from determined.common import api
  from determined.common.api import authentication, certs
  from tests import config
  from .managed_cluster import ManagedCluster
label_desc: Use image node_id 2 for calling a global function with example usage: test_agent_never_connect() without return types