code: def loader_func(**kwargs):
      import dtale.global_state as global_state
  
      try:
          from arcticdb import Arctic
          from arcticdb.version_store._store import VersionedItem
      except ImportError:
          raise ImportError(
              "In order to use the arcticdb loader you must install arcticdb!"
          )
  
      read_kwargs = {}
      uri, library, symbol, start, end = (
          kwargs.get(p)
          for p in ["uri", "library", "symbol", "start", "end"]
      )
      uri = kwargs.get("arcticdb_host") or uri
      if not uri:
          raise ValueError("--arcticdb-uri is a required parameter!")
      if start and end:
          read_kwargs["date_range"] = [
              pd.Timestamp(start),
              pd.Timestamp(end),
          ]
      conn = Arctic(uri)
  
      if kwargs.get("use_store"):
          global_state.use_arcticdb_store(
              **dict(
                  uri=uri, library=library, symbol=symbol, **read_kwargs
              )
          )
  
      if global_state.is_arcticdb:
          from dtale.views import startup
  
          if library and global_state.store.lib.name != library:
              global_state.store.update_library(library)
  
          if symbol is None:  # select symbol from the UI
              return None
  
          if library is None and symbol is not None:
              raise ValueError(
                  "When trying to load the symbol, {}, a library must be specified!".format(
                      symbol
                  )
              )
  
          startup(data="{}|{}".format(library, symbol))
          return symbol
  
      if not library:
          raise ValueError(
              "Please specify a value for --arcticdb-library or use --arcticdb-use_store"
          )
      lib = conn.get_library(library)
      data = lib.read(symbol, **read_kwargs)
      if isinstance(data, VersionedItem):
          data = data.data
  
      return data
  
imports: from logging import getLogger
  import pandas
  from dtale.app import show
  from dtale.cli.clickutils import get_loader_options
label_desc: Use image node_id 2 for calling a global function with example usage: loader_func() and returns: data, symbol, None