code: def get_store_contents():
      """
      Return an ordered tuple of attributes representing the store contents.
      Useful for ensuring key properties stay the same when switching between systems.
      """
      _get_one = [
          serialized_dataframe(global_state.get_data("1")),
          global_state.get_dtypes("1"),
          global_state.get_settings("1"),
          global_state.get_metadata("1"),
          global_state.get_context_variables("1"),
          global_state.get_history("1"),
      ]
      _get_all = [
          {
              int(k): serialized_dataframe(v.data)
              for k, v in global_state.items()
          },
          {int(k): v.dtypes for k, v in global_state.items()},
          {int(k): v.settings for k, v in global_state.items()},
          {int(k): v.metadata for k, v in global_state.items()},
          {
              int(k): v.context_variables
              for k, v in global_state.items()
          },
          {int(k): v.history for k, v in global_state.items()},
      ]
      _lengths = [global_state.size()]
      return (_get_one, _get_all, _lengths)
  
file_path: dtale/tests/dtale/test_global_state.py
imports: import mock
  import pandas
  import pytest
  import dtale.global_state
  from dtale.views import build_dtypes_state
label_desc: Use image node_id 4 for calling a global function with example usage: get_store_contents() and returns: _get_one,  _get_all,  _lengths