This multiline split doesn't seem right (closing paren on final line; would be neater to put the first dictionary entry on line 336 not 335)

Why is input 5 intentionally left unset? I might prefer that in a comment above the declaration of `valid_get_dict`