docstr: Mock function that records calls to it 
docstr_tok: ["Mock","function","that","records","calls","to","it"]
code: def _mock_clear_output(self):
      """Mock function that records calls to it"""
      calls = []
  
      def clear_output(*args, **kwargs):
          calls.append((args, kwargs))
  
      clear_output.calls = calls
  
      return clear_output
  
file_path: catboost/contrib/python/ipywidgets/py3/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 3 for calling the TestOutputWidget obj's underlying member method code with example usage: obj._mock_clear_output() and returns: clear_output