def METHOD_NAME():
    """Test queries split into time segments threaded execution."""
    prov_args = dict(query_paths=_LOCAL_DATA_PATHS, data_paths=_LOCAL_DATA_PATHS)
    local_prov = QueryProvider("LocalData", **prov_args)
    local_prov._query_provider.set_driver_property(
        DriverProps.SUPPORTS_THREADING, value=True
    )
    start = datetime.now(timezone.utc) - pd.Timedelta("5H")
    end = datetime.now(timezone.utc) + pd.Timedelta("5min")
    delta = pd.Timedelta("1H")
    ranges = _calc_split_ranges(start, end, delta)
    local_prov.WindowsSecurity.list_host_logons(
        host_name="DESKTOP-12345", start=start, end=end
    )
    result_queries = local_prov.WindowsSecurity.list_host_logons(
        "print", host_name="DESKTOP-12345", start=start, end=end, split_query_by="1H"
    )
    queries = result_queries.split("\n\n")
    check.equal(len(queries), 5)
    for idx, (st_time, e_time) in enumerate(ranges):
        check.is_in(st_time.isoformat(sep=" "), queries[idx])
        check.is_in(e_time.isoformat(sep=" "), queries[idx])
    check.is_in(start.isoformat(sep=" "), queries[0])
    check.is_in(end.isoformat(sep=" "), queries[-1])
    single_results = local_prov.WindowsSecurity.list_host_logons(
        host_name="DESKTOP-12345", start=start, end=end
    )
    result_queries = local_prov.WindowsSecurity.list_host_logons(
        host_name="DESKTOP-12345", start=start, end=end, split_query_by="1H"
    )
    # verify len of result is 2x single_result
    check.equal(single_results.shape[0] * 5, result_queries.shape[0])
    # verify columns/schema is the same.
    check.equal(list(single_results.columns), list(result_queries.columns))