<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ignore_warning(self, session, *warnings_constants):
 """A session dependent context for ignoring warnings :param session: Unique logical identifier to a session. :param warnings_constants: constants identifying the warnings to ignore. """

        self._ignore_warning_in_session[session].update(warnings_constants)
        yield
        self._ignore_warning_in_session[session].difference_update(warnings_constants)