code: def test_run_query():
      df = pd.DataFrame(
          [
              dict(a=1, b=2, c=3),
              dict(a=2, b=3, c=4),
              dict(a=3, b=4, c=5),
          ]
      )
  
      with pytest.raises(Exception):
          query.run_query(df, "a == 4")
  
      assert (
          len(query.run_query(df, "`a` in @a", {"a": [1, 2, 3]})) == 3
      )
  
      if PY3 and check_pandas_version("0.25.0"):
          df = pd.DataFrame(
              [
                  {"a.b": 1, "b": 2, "c": 3},
                  {"a.b": 2, "b": 3, "c": 4},
                  {"a.b": 3, "b": 4, "c": 5},
              ]
          )
          assert len(query.run_query(df, "`a.b` == 1")) == 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 1 for calling a global function with example usage: test_run_query() without return types