code: def test_arctic_loader_integration(
      mongo_host, library_name, library, chunkstore_name, chunkstore_lib
  ):
      symbol = pd.DataFrame(
          [
              {"date": pd.Timestamp("20000101"), "a": 1, "b": 1.0},
              {"date": pd.Timestamp("20000102"), "a": 2, "b": 2.0},
          ]
      ).set_index(["date", "a"])
      chunkstore_lib.write("test_symbol", symbol)
  
      with ExitStack() as stack:
          mock_show = stack.enter_context(
              mock.patch("dtale.cli.script.show", mock.Mock())
          )
          args = [
              "--port",
              "9999",
              "--arctic-host",
              mongo_host,
              "--arctic-library",
              chunkstore_name,
              "--arctic-symbol",
              "test_symbol",
              "--arctic-start",
              "20000101",
              "--arctic-end",
              "20000102",
          ]
          script.main(args, standalone_mode=False)
          mock_show.assert_called_once()
          _, kwargs = mock_show.call_args
          assert kwargs["data_loader"] is not None
          pdt.assert_frame_equal(kwargs["data_loader"](), symbol)
  
      symbol2 = pd.DataFrame(
          [
              {"date": pd.Timestamp("20000101"), "a": 1, "b": 1.0},
              {"date": pd.Timestamp("20000102"), "a": 2, "b": 2.0},
          ]
      ).set_index(["date", "a"])
      library.write("test_symbol2", symbol2)
      with ExitStack() as stack:
          mock_show = stack.enter_context(
              mock.patch("dtale.cli.script.show", mock.Mock())
          )
          args = [
              "--port",
              "9999",
              "--arctic-host",
              mongo_host,
              "--arctic-library",
              library_name,
              "--arctic-symbol",
              "test_symbol2",
          ]
          script.main(args, standalone_mode=False)
          mock_show.assert_called_once()
          _, kwargs = mock_show.call_args
          assert kwargs["data_loader"] is not None
          pdt.assert_frame_equal(kwargs["data_loader"](), symbol2)
  
imports: import os
  import sys
  from imp import reload
  import mock
  import pandas
  import pytest
  from six import PY3
  from dtale.cli import loaders, script
  from dtale.cli.clickutils import run
  from dtale.pandas_util import check_pandas_version
  from tests import ExitStack, pdt
label_desc: Use image node_id 3 for calling a global function with example usage: test_arctic_loader_integration(mongo_host, library_name, library, chunkstore_name, chunkstore_lib) without return types