code: def test_query_local_dict():
      df = DataFrame()
      df["a"] = aa = np.arange(100)
      expr = "a < @val"
  
      got = df.query(expr, local_dict={"val": 10})
      np.testing.assert_array_equal(aa[aa < 10], got["a"].to_numpy())
  
      # test for datetime
      df = DataFrame()
      data = np.array(["2018-10-07", "2018-10-08"], dtype="datetime64")
      df["datetimes"] = data
      search_date = datetime.datetime.strptime("2018-10-08", "%Y-%m-%d")
      expr = "datetimes==@search_date"
  
      got = df.query(expr, local_dict={"search_date": search_date})
      np.testing.assert_array_equal(
          data[1], got["datetimes"].to_numpy()
      )
  
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 5 for calling a global function with example usage: test_query_local_dict() without return types