code: def setup_test_comm():
      _widget_attrs["_comm_default"] = getattr(
          Widget, "_comm_default", undefined
      )
      Widget._comm_default = lambda self: DummyComm()
      _widget_attrs["_ipython_display_"] = Widget._ipython_display_
  
      def raise_not_implemented(*args, **kwargs):
          raise NotImplementedError()
  
      Widget._ipython_display_ = raise_not_implemented
  
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 1 for calling a global function with example usage: setup_test_comm() without return types