code: def ignore_warning(self, session, *warnings_constants):
          
          self._ignore_warning_in_session[session].update(warnings_constants)
          yield
          self._ignore_warning_in_session[session].difference_update(warnings_constants)
docs: A session dependent context for ignoring warnings
  
          :param session: Unique logical identifier to a session.
          :param warnings_constants: constants identifying the warnings to ignore.