def METHOD_NAME(
    self, query: ir.Expr, params: Mapping[ir.Expr, object] | None = None, **kwargs
):
    """Compile `expr`.
    Returns
    -------
    dask.dataframe.core.DataFrame | dask.dataframe.core.Series | das.dataframe.core.Scalar
        Dask graph.
    """
    params = {
        k.op() if isinstance(k, ir.Expr) else k: v
        for k, v in ({} if params is None else params).items()
    }
    return execute_and_reset(query.op(), params=params, **kwargs)