code: def test_build_query():
      import dtale.global_state as global_state
  
      data_id = global_state.new_data_inst()
      global_state.set_settings(
          data_id, {"columnFilters": {"foo": {"query": "`foo` == 1"}}}
      )
      assert query.build_query(data_id) == "`foo` == 1"
  
imports: import pandas
  import pytest
  from six import PY3
  import dtale.query
  from dtale.pandas_util import check_pandas_version
label_desc: Use image node_id 2 for calling a global function with example usage: test_build_query() without return types