code: def test_settings_management():
      from dtale.views import DtaleData
  
      with ExitStack() as stack:
          mock_default_store = stack.enter_context(
              mock.patch(
                  "dtale.global_state._default_store", mock.Mock()
              )
          )
          mock_default_store.get_settings.return_value = {}
          mock_get_settings = stack.enter_context(
              mock.patch("dtale.global_state.get_settings")
          )
  
          instance = DtaleData("9999", "user/root/proxy/9999")
          instance.update_settings(range_highlights={})
          mock_default_store.get_settings.assert_called_once_with(
              "9999"
          )
          mock_default_store.set_settings.assert_called_once_with(
              "9999", dict(rangeHighlight={})
          )
          mock_default_store.reset_mock()
          instance.get_settings()
          mock_get_settings.assert_called_once_with("9999")
  
file_path: dtale/tests/dtale/test_instance.py
imports: from collections import namedtuple
  import mock
  import pandas
  import pytest
  from dtale.dash_application.charts import get_url_parser
  from tests import ExitStack
  from tests.dtale import build_data_inst
label_desc: Use image node_id 7 for calling a global function with example usage: test_settings_management() without return types