code: def teardown_test_comm():
      for attr, value in _widget_attrs.items():
          if value is undefined:
              delattr(Widget, attr)
          else:
              setattr(Widget, attr, value)
      _widget_attrs.clear()
  
file_path: catboost/contrib/python/ipywidgets/py2/ipywidgets/widgets/tests/utils.py
imports: from ipykernel.comm import Comm
  from ipywidgets import Widget
label_desc: Use image node_id 2 for calling a global function with example usage: teardown_test_comm() without return types