code: def teardown(self):
      for w in tuple(Widget.widgets.values()):
          w.close()
  
file_path: catboost/contrib/python/ipywidgets/py2/ipywidgets/tests/test_embed.py
imports: import json
  import os
  import re
  import tempfile
  import shutil
  import traitlets
  from ipywidgets.widgets import IntSlider, IntText, Text, Widget, jslink, HBox, widget_serialization
  from ipywidgets.embed import embed_data, embed_snippet, embed_minimal_html, dependency_state
label_desc: Use image node_id 1 for calling the TestEmbed obj's underlying member method code with example usage: obj.teardown() without return types