def parse_json(s, **kwargs):
d = json.loads(s, **kwargs)<EOL>nbf = d.get('<STR_LIT>', <NUM_LIT:1>)<EOL>nbm = d.get('<STR_LIT>', <NUM_LIT:0>)<EOL>return nbf, nbm, d<EOL>
Parse a string into a (nbformat, dict) tuple.