code: def context(self, *notes):
          
          self._appended_notes += notes
          yield
          del self._appended_notes[-len(notes):]
docs: A context manager that appends ``note`` to every diagnostic processed by
          this engine.