def METHOD_NAME(monkeypatch, place_key_files, tmp_path: Path):
    pwd_structs = [
        pwd.struct_passwd(  # type: ignore[attr-defined]
            [
                "root",
                "x",
                0,
                0,
                "root",
                tmp_path / "root",
                "/bin/bash",
            ]
        ),
        pwd.struct_passwd(  # type: ignore[attr-defined]
            [
                USERNAME_1,
                "x",
                4,
                65534,
                "sync",
                tmp_path / f"home/{USERNAME_1}",
                "/bin/sync",
            ]
        ),
        pwd.struct_passwd(  # type: ignore[attr-defined]
            [
                "daemon",
                "x",
                1,
                1,
                "daemon",
                tmp_path / "daemon_home",
                "/usr/sbin/nologin",
            ]
        ),
        pwd.struct_passwd(  # type: ignore[attr-defined]
            [
                USERNAME_2,
                "x",
                4,
                65534,
                "sync",
                tmp_path / f"var/home/{USERNAME_2}",
                "/bin/sync",
            ]
        ),
    ]
    mock_pwd = MagicMock()
    mock_pwd.getpwall = MagicMock(return_value=pwd_structs)
    monkeypatch.setattr("agent_plugins.credentials_collectors.ssh.src.plugin.pwd", mock_pwd)