code: def get_shuffled_batches(Xs, Ys, batch_size):
      zipped = list(zip(Xs, Ys))
      random.shuffle(zipped)
      for i in range(0, len(zipped), batch_size):
          batch_X, batch_Y = zip(*zipped[i : i + batch_size])
          yield list(batch_X), list(batch_Y)
  
file_path: thinc/thinc/tests/layers/test_basic_tagger.py
imports: import random
  import pytest
  from thinc.api import Adam, HashEmbed, Model, Relu, Softmax, chain, expand_window, strings2arrays, with_array
label_desc: Use image node_id 5 for calling a global function with example usage: get_shuffled_batches(Xs, Ys, batch_size) without return types