code: def check_batches(batched_data, expected_sizes, expected_order):
      for chunk, size in zip(batched_data, expected_sizes):
          assert sum(len(x[0]) for x in chunk) == size
      word_order = []
      for chunk in batched_data:
          for sentence in chunk:
              word_order.append(sentence[0][0])
      assert word_order == expected_order
  
imports: import pytest
  from stanza.models.depparse.data import data_to_batches
label_desc: Use image node_id 2 for calling a global function with example usage: check_batches(batched_data, expected_sizes, expected_order) without return types