code: def query_builder(info, funcid):
      """Function builder for the query expression
  
      Parameters
      ----------
      info: dict
          From the `query_parser()`
      funcid: str
          The name for the function being generated
  
      Returns
      -------
      func: a python function of the query
      """
      args = info["args"]
      def_line = "def {funcid}({args}):".format(
          funcid=funcid, args=", ".join(args)
      )
      lines = [def_line, "    return {}".format(info["source"])]
      source = "\n".join(lines)
      glbs = {}
      exec(source, glbs)
      return glbs[funcid]
  
imports: import ast
  import datetime
  from typing import Any, Dict
  import numpy
  from numba import cuda
  import cudf
  from cudf.core.buffer import acquire_spill_lock
  from cudf.core.column import column_empty
  from cudf.utils import applyutils
  from cudf.utils._numba import _CUDFNumbaConfig
  from cudf.utils.dtypes import BOOL_TYPES, DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES
label_desc: Use image node_id 2 for calling a global function with example usage: query_builder(info, funcid) and returns: glbs