code: def test_query(data, fn, nulls):
      # prepare
      nelem, seed = data
      expect_fn, query_expr = fn
      np.random.seed(seed)
      pdf = pd.DataFrame()
      pdf["a"] = np.arange(nelem)
      pdf["b"] = np.random.random(nelem) * nelem
      if nulls:
          pdf.loc[::2, "a"] = None
      gdf = cudf.from_pandas(pdf)
      assert_eq(pdf.query(query_expr), gdf.query(query_expr))
  
file_path: cudf/python/cudf/cudf/tests/test_query.py
imports: import datetime
  import inspect
  from itertools import product
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import DataFrame
  from cudf.testing._utils import assert_eq
  from cudf.utils import queryutils
label_desc: Use image node_id 2 for calling a global function with example usage: test_query(data, fn, nulls) without return types