code: def test_get_arcticdb_libraries(unittest, arcticdb_path, arcticdb):
      pytest.importorskip("arcticdb")
      global_state.use_arcticdb_store(
          uri=arcticdb_path, library="dtale"
      )
  
      with app.test_client() as c:
          response = c.get("/dtale/arcticdb/libraries")
          response_data = response.get_json()
          unittest.assertEqual(
              response_data,
              {
                  "libraries": ["dtale"],
                  "library": "dtale",
                  "async": False,
                  "success": True,
              },
          )
  
      with mock.patch(
          "dtale.global_state.store.load_libraries"
      ) as load_libs_mock:
          with app.test_client() as c:
              response = c.get(
                  "/dtale/arcticdb/libraries",
                  query_string=dict(refresh="true"),
              )
              response_data = response.get_json()
              unittest.assertEqual(
                  response_data["libraries"], ["dtale"]
              )
              load_libs_mock.assert_called_once()
  
      with mock.patch(
          "dtale.global_state.store._libraries",
          ["lib{}".format(v) for v in range(501)],
      ):
          with app.test_client() as c:
              response = c.get("/dtale/arcticdb/libraries")
              response_data = response.get_json()
              unittest.assertEqual(
                  response_data["libraries"],
                  ["lib0", "lib1", "lib2", "lib3", "lib4"],
              )
              assert response_data["async"]
  
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 13 for calling a global function with example usage: test_get_arcticdb_libraries(unittest, arcticdb_path, arcticdb) without return types