code: def test_cleanup(unittest, test_data):
      initialize_store(test_data)
      base_contents = get_store_contents()
  
      # should just remove 1 entry, leaving one still in there
      global_state.cleanup(data_id="2")
      without_one = get_store_contents()
  
      # should remove ALL entries
      initialize_store(test_data)
      global_state.cleanup()
      without_any = get_store_contents()
  
      unittest.assertNotEqual(
          base_contents, without_one, "should have removed one"
      )
      unittest.assertNotEqual(
          base_contents, without_any, "should have removed all"
      )
      unittest.assertNotEqual(
          without_one, without_any, "first should still have some data"
      )
  
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 7 for calling a global function with example usage: test_cleanup(unittest, test_data) without return types