def METHOD_NAME(
    memory_utilizer: MemoryUtilizer,
    mock_agent_event_publisher: IAgentEventPublisher,
    bytes_to_consume_1: int,
    bytes_to_consume_2: int,
    expected_publish_count: int,
):
    memory_utilizer.consume_bytes(bytes_to_consume_1)
    memory_utilizer.consume_bytes(bytes_to_consume_2)
    assert mock_agent_event_publisher.publish.call_count == expected_publish_count