def METHOD_NAME():
    with mock.patch(
        "paasta_tools.kubernetes.bin.paasta_cleanup_stale_nodes.get_all_nodes",
        autospec=True,
    ) as mock_get_all_nodes, mock.patch(
        "paasta_tools.kubernetes.bin.paasta_cleanup_stale_nodes.KubeClient",
        autospec=True,
    ) as mock_kube_client, mock.patch(
        "paasta_tools.kubernetes.bin.paasta_cleanup_stale_nodes.nodes_for_cleanup",
        autospec=True,
    ) as mock_nodes_for_cleanup, mock.patch(
        "paasta_tools.kubernetes.bin.paasta_cleanup_stale_nodes.terminate_nodes",
        autospec=True,
    ) as mock_terminate_nodes, mock.patch(
        "paasta_tools.kubernetes.bin.paasta_cleanup_stale_nodes.parse_args",
        autospec=True,
    ) as mock_parse_args, mock.patch(
        "boto3.client", autospec=True
    ):
        mock_args = mock.MagicMock()
        mock_args.dry_run = False
        mock_parse_args.return_value = mock_args
        m1 = mock.MagicMock(metadata=mock.Mock())
        m2 = mock.Mock(metadata=mock.Mock())
        m3 = mock.Mock(metadata=mock.Mock())
        m4 = mock.Mock(metadata=mock.Mock())
        for i, m in enumerate([m1, m2, m3, m4]):
            m.metadata.name = f"m{i+1}"
            if i < 3:
                m.metadata.labels = {
                    "failure-domain.beta.kubernetes.io/region": "us-west-1"
                }
            else:
                m.metadata.labels = {
                    "failure-domain.beta.kubernetes.io/region": "us-west-1",
                    "node-role.kubernetes.io/master": "",
                }
        mock_get_all_nodes.return_value = [m1, m2, m3, m4]
        mock_nodes_for_cleanup.return_value = [m2, m3]
        mock_terminate_nodes.return_value = (["m2"], [("m3", mock.MagicMock())])
        with pytest.raises(SystemExit) as e:
            main()
        mock_terminate_nodes.assert_called_once_with(mock_kube_client(), ["m2", "m3"])
        assert e.value.code == 1
        mock_terminate_nodes.reset_mock()
        mock_terminate_nodes.return_value = (["m2", "m3"], [])
        main()
        mock_terminate_nodes.assert_called_once_with(mock_kube_client(), ["m2", "m3"])