code: def test_query():
      np.random.seed(0)
  
      df = pd.DataFrame(
          {
              "x": np.random.randint(0, 5, size=10),
              "y": np.random.normal(size=10),
          }
      )
      gdf = cudf.DataFrame.from_pandas(df)
      expr = "x > 2"
  
      dd.assert_eq(gdf.query(expr), df.query(expr))
  
      queried = dd.from_pandas(gdf, npartitions=2).query(expr)
  
      got = queried
      expect = gdf.query(expr)
  
      dd.assert_eq(got, expect)
  
imports: import random
  import cupy
  import numpy
  import pandas
  import pytest
  from packaging import version
  import dask
  from dask import dataframe
  from dask.dataframe.core import make_meta, meta_nonempty
  from dask.utils import M
  import cudf
  import dask_cudf
label_desc: Use image node_id 8 for calling a global function with example usage: test_query() without return types