code: def build_query(data_id, query=None, as_query_builder=False):
      curr_settings = global_state.get_settings(data_id) or {}
      return inner_build_query(curr_settings, query)
  
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 2 for calling a global function with example usage: build_query(data_id, query, as_query_builder) and returns: inner_build_query