def parse_input(self, inp: str) -> Dict[Any, Any]:
state: List = []<EOL>for i in range(len(inp.split()) // <NUM_LIT:2>, <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>state.append([inp.split(None, <NUM_LIT:1>)[<NUM_LIT:0>], inp.split(None, <NUM_LIT:1>)[<NUM_LIT:1>].split()[<NUM_LIT:0>]])<EOL>if i > <NUM_LIT:1>:<EOL><INDENT>inp = inp.split(None, <NUM_LIT:2>)[<NUM_LIT:2>]<EOL><DEDENT><DEDENT>return dict(state)<EOL>
Convert space-delimited string into dialog state