code: def test_deprecation_warning_mapping_options(self):
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("always")
  
          # Clearing the internal __warningregistry__ seems to be required for
          # Python 2 (but not for Python 3)
          module = inspect.getmodule(Dropdown)
          getattr(module, "__warningregistry__", {}).clear()
  
          Dropdown(options={"One": 1, "Two": 2, "Three": 3})
          assert len(w) > 0
          assert issubclass(w[-1].category, DeprecationWarning)
          assert "Support for mapping types has been deprecated" in str(
              w[-1].message
          )
  
file_path: catboost/contrib/python/ipywidgets/py2/ipywidgets/widgets/tests/test_widget_selection.py
imports: import inspect
  import warnings
  from unittest import TestCase
  from traitlets import TraitError
  from ipywidgets import Dropdown, SelectionSlider, Select
label_desc: Use image node_id 2 for calling the TestDropdown obj's underlying member method code with example usage: obj.test_deprecation_warning_mapping_options() without return types