code: def test_capture_decorator_clear_output(self):
      msg_id = "msg-id"
      get_ipython = self._mock_get_ipython(msg_id)
      clear_output = self._mock_clear_output()
  
      with self._mocked_ipython(get_ipython, clear_output):
          widget = widget_output.Output()
  
          @widget.capture(clear_output=True, wait=True)
          def captee(*args, **kwargs):
              # Check that we are capturing output
              assert widget.msg_id == msg_id
  
          captee()
          captee()
  
      assert len(clear_output.calls) == 2
      assert (
          clear_output.calls[0]
          == clear_output.calls[1]
          == ((), {"wait": True})
      )
  
file_path: catboost/contrib/python/ipywidgets/py2/ipywidgets/widgets/tests/test_widget_output.py
imports: import sys
  from unittest import TestCase
  from contextlib import contextmanager
  from IPython.display import Markdown, Image
  from ipywidgets import widget_output
label_desc: Use image node_id 7 for calling the TestOutputWidget obj's underlying member method code with example usage: obj.test_capture_decorator_clear_output() without return types