def METHOD_NAME():
    # Verify that developer error shows developer error (the Github link).
    # Because do_execute is so minimal, we'll assume we have a bug in the _repeat_fatal_error method
    kernel._fatal_error = "Something bad happened before"
    kernel._repeat_fatal_error = MagicMock(side_effect=ValueError)
    ret = kernel.do_execute(code, False)
    assert execute_cell_mock.return_value is ret
    assert execute_cell_mock.called_once_with("None", True)
    assert ipython_display.send_error.call_count == 1