def METHOD_NAME(content, expected_chunks, task_result):
    file = File.from_bytes(content)
    handlers = (
        TestHandlerA,
        TestHandlerB,
        TestHandlerD,
        TestHandlerEof,
        TestHandlerInvalid,
        TestHandlerExc,
        TestHandlerL,
    )
    chunks = search_chunks(file, len(content), handlers, task_result)
    assert len(chunks) == len(expected_chunks)
    for expected_chunk, chunk in zip(expected_chunks, chunks):
        assert attr.evolve(chunk, id="") == attr.evolve(expected_chunk, id="")