code: def load_filterable_data(data_id, req, query=None, columns=None):
      filtered = get_bool_arg(req, "filtered")
      if global_state.is_arcticdb:
          query_builder = build_query_builder(data_id)
          instance = global_state.store.get(data_id)
          if filtered:
              data = instance.load_data(
                  query_builder=query_builder, columns=columns
              )
          else:
              data = instance.load_data(columns=columns)
          data, _ = format_data(data)
          return data
      curr_settings = global_state.get_settings(data_id) or {}
      if filtered:
          final_query = query or build_query(
              data_id, curr_settings.get("query")
          )
          return run_query(
              handle_predefined(data_id),
              final_query,
              global_state.get_context_variables(data_id),
              ignore_empty=True,
          )
      return global_state.get_data(data_id)
  
file_path: dtale/dtale/query.py
imports: import pandas
  import dtale.global_state
  from dtale.pandas_util import check_pandas_version
  from dtale.utils import format_data, get_bool_arg
label_desc: Use image node_id 9 for calling a global function with example usage: load_filterable_data(data_id, req, query, columns) and returns: global_state, data, run_query