code: def add_resolved_links(store, drop_defaults):
      """Adds the state of any link models between two models in store"""
      for (
          widget_id,
          widget,
      ) in Widget.widgets.items():  # go over all widgets
          if isinstance(widget, Link) and widget_id not in store:
              if (
                  widget.source[0].model_id in store
                  and widget.target[0].model_id in store
              ):
                  store[widget.model_id] = widget._get_embed_state(
                      drop_defaults=drop_defaults
                  )
  
file_path: catboost/contrib/python/ipywidgets/py2/ipywidgets/embed.py
imports: import json
  import re
  from .widgets import Widget, DOMWidget
  from .widgets.widget_link import Link
  from .widgets.docutils import doc_subst
  from ._version import __html_manager_version__
label_desc: Use image node_id 3 for calling a global function with example usage: add_resolved_links(store, drop_defaults) without return types