<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _handle_table_cell_end(self, reset_for_style=False):
 """Returns the current context, with the TABLE_CELL_STYLE flag set if it is necessary to reset and parse style attributes."""

        if reset_for_style:
            self._context |= contexts.TABLE_CELL_STYLE
        else:
            self._context &= ~contexts.TABLE_CELL_STYLE
        return self._pop(keep_context=True)