code: def test_loading_data_w_filters(unittest, arcticdb_path, arcticdb):
      pytest.importorskip("arcticdb")
      from dtale.views import startup
  
      global_state.use_arcticdb_store(
          uri=arcticdb_path, library="dtale"
      )
      startup(data="df1")
  
      with app.test_client() as c:
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="str_val",
                  cfg=json.dumps({"type": "string", "value": ["b"]}),
              ),
          )
          response = c.get(
              "/dtale/data/dtale%257Cdf1",
              query_string=dict(ids=json.dumps(["0"])),
          )
          response_data = response.get_json()
          expected_results = {
              "0": {
                  "dtale_index": 0,
                  "float_val": 2.2,
                  "index": "2000-01-02",
                  "int_val": 2,
                  "str_val": "b",
              }
          }
          unittest.assertEqual(
              response_data["results"], expected_results
          )
          unittest.assertEqual(response_data["total"], 1)
          unittest.assertEqual(
              response_data["final_query"], "`str_val` == 'b'"
          )
  
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="str_val", cfg=json.dumps({"type": "string"})
              ),
          )
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="int_val",
                  cfg=json.dumps(
                      {"type": "int", "value": [3], "operand": "="}
                  ),
              ),
          )
          response = c.get(
              "/dtale/data/dtale%257Cdf1",
              query_string=dict(ids=json.dumps(["0"])),
          )
          response_data = response.get_json()
          expected_results = {
              "0": {
                  "dtale_index": 0,
                  "float_val": 3.3,
                  "index": "2000-01-03",
                  "int_val": 3,
                  "str_val": "c",
              }
          }
          unittest.assertEqual(
              response_data["results"], expected_results
          )
          unittest.assertEqual(response_data["total"], 1)
          unittest.assertEqual(
              response_data["final_query"], "`int_val` == 3"
          )
  
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="int_val", cfg=json.dumps({"type": "int"})
              ),
          )
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="float_val",
                  cfg=json.dumps(
                      {"type": "float", "value": 1.1, "operand": "="}
                  ),
              ),
          )
          response = c.get(
              "/dtale/data/dtale%257Cdf1",
              query_string=dict(ids=json.dumps(["0"])),
          )
          response_data = response.get_json()
          expected_results = {
              "0": {
                  "dtale_index": 0,
                  "float_val": 1.1,
                  "index": "2000-01-01",
                  "int_val": 1,
                  "str_val": "a",
              }
          }
          unittest.assertEqual(
              response_data["results"], expected_results
          )
          unittest.assertEqual(response_data["total"], 1)
          unittest.assertEqual(
              response_data["final_query"], "`float_val` == 1.1"
          )
  
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="float_val", cfg=json.dumps({"type": "float"})
              ),
          )
          c.get(
              "/dtale/save-column-filter/dtale%257Cdf1",
              query_string=dict(
                  col="index",
                  cfg=json.dumps(
                      {
                          "type": "date",
                          "start": "20000101",
                          "end": "20000101",
                      }
                  ),
              ),
          )
          response = c.get(
              "/dtale/data/dtale%257Cdf1",
              query_string=dict(ids=json.dumps(["0"])),
          )
          response_data = response.get_json()
          unittest.assertEqual(
              response_data["results"], expected_results
          )
          unittest.assertEqual(response_data["total"], 1)
          unittest.assertEqual(
              response_data["final_query"], "`index` == '20000101'"
          )
  
imports: import json
  import mock
  import pytest
  from pkg_resources import parse_version
  import dtale.global_state
  from dtale.app import build_app
  from tests import ExitStack
label_desc: Use image node_id 7 for calling a global function with example usage: test_loading_data_w_filters(unittest, arcticdb_path, arcticdb) without return types