def od_reorder_keys(od, keys_in_new_order): 
if set(od.keys()) != set(keys_in_new_order):<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>for key in keys_in_new_order:<EOL><INDENT>od[key] = od.pop(key)<EOL><DEDENT>return od<EOL>
Reorder the keys in an OrderedDict ``od`` in-place.