code: def test_sqlite_loader():
      props = [
          "host",
          "port",
          "debug",
          "subprocess",
          "data_loader",
          "reaper_on",
      ]
      with mock.patch(
          "dtale.cli.script.show", mock.Mock()
      ) as mock_show:
          sqlite_path = os.path.join(
              os.path.dirname(__file__), "..", "data/test.sqlite3"
          )
          args = [
              "--host",
              "test",
              "--port",
              "9999",
              "--sqlite-path",
              sqlite_path,
              "--sqlite-table",
              "test_simpsons",
          ]
          script.main(args, standalone_mode=False)
          mock_show.assert_called_once()
          _, kwargs = mock_show.call_args
          host, port, debug, subprocess, data_loader, reaper_on = map(
              kwargs.get, props
          )
          assert host == "test"
          assert not subprocess
          assert not debug
          assert port == 9999
          assert reaper_on
          assert data_loader is not None
          df = data_loader()
          assert len(df) == 5
  
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 2 for calling a global function with example usage: test_sqlite_loader() without return types