def METHOD_NAME(params, search, condition):
    builder = ProfileFunctionsQueryBuilder(
        Dataset.Functions,
        params,
        query=search,
        selected_columns=["count()"],
        config=QueryBuilderConfig(
            use_aggregate_conditions=True,
        ),
    )
    assert condition in builder.having