code: def test_redis_requirement(builtin_pkg, tmpdir):
      orig_import = __import__
  
      def import_that_fails(name, *args):
          if name == "redislite":
              raise ImportError
          return orig_import(name, *args)
  
      with mock.patch(
          "{}.__import__".format(builtin_pkg),
          side_effect=import_that_fails,
      ):
          directory = tmpdir.mkdir("test_use_redis_store").dirname
          with pytest.raises(BaseException) as error:
              global_state.use_redis_store(directory)
          assert "redislite must be installed" in str(error.value)
  
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 13 for calling a global function with example usage: test_redis_requirement(builtin_pkg, tmpdir) and returns: orig_import