def METHOD_NAME(self, stats):
    if stats is None:
        self._reset_session_stats()
    else:
        self._session_stats = stats
    self._session_stats_updated = True
    self._maybe_run_callbacks()