def METHOD_NAME():
    """Test that set_state_dict sets state properly to generate new cmdline."""
    cmdline_parser = CmdlineParser()
    cmdline_parser.set_state_dict(
        {
            "arguments": {},
            "template": [
                "{_pos_0}",
                "{_pos_1}",
                "--with",
                "{with}",
                "--plus",
                "--booleans",
            ],
        }
    )
    assert cmdline_parser.format(
        {"_pos_0": "voici", "_pos_1": "voila", "with": "class"}
    ) == ["voici", "voila", "--with", "class", "--plus", "--booleans"]