def mock_docker_client_connections(monkeypatch: pytest.MonkeyPatch) -> None:
    """
    Ensure the docker client does not make any actual network calls
    """
    from docker.transport.sshconn import SSHHTTPAdapter
    from docker.api.client import APIClient

    # ensure that no actual connection is tried
    monkeypatch.setattr(SSHHTTPAdapter, "_connect", Mock())
    monkeypatch.setattr(SSHHTTPAdapter, "_create_paramiko_client", Mock())
    monkeypatch.setattr(APIClient, "_retrieve_server_version", Mock(return_value="1.47"))

    Ensure the docker client does not make any actual network calls
    
core/tests/test_config.py