code: def test_arctic_import_error(builtin_pkg):
      orig_import = __import__
  
      def import_mock(name, *args, **kwargs):
          if name.startswith("arctic"):
              raise ImportError()
          return orig_import(name, *args, **kwargs)
  
      with ExitStack() as stack:
          stack.enter_context(
              mock.patch("dtale.app.build_app", mock.Mock())
          )
          stack.enter_context(
              mock.patch(
                  "{}.__import__".format(builtin_pkg),
                  side_effect=import_mock,
              )
          )
          args = [
              "--port",
              "9999",
              "--arctic-host",
              "arctic_host",
              "--arctic-library",
              "arctic_lib",
              "--arctic-symbol",
              "arctic_symbol",
              "--arctic-start",
              "20000101",
              "--arctic-end",
              "20000102",
          ]
          with pytest.raises(ImportError) as error:
              script.main(args, standalone_mode=False)
          assert (
              "In order to use the arctic loader you must install arctic!"
              in str(error)
          )
  
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 5 for calling a global function with example usage: test_arctic_import_error(builtin_pkg) and returns: orig_import