def _json(self, response, status_code):
if isinstance(status_code, numbers.Integral):<EOL><INDENT>status_code = (status_code,)<EOL><DEDENT>if response.status_code in status_code:<EOL><INDENT>return response.json()<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>"<EOL>"<STR_LIT>".format(response.status_code,<EOL>status_code))<EOL><DEDENT>
Extract JSON from response if `status_code` matches.