code: def assert_arrays_match(X, Y):
      assert X.dtype == Y.dtype
      # Transformations are allowed to change last dimension, but not batch size.
      assert X.shape[0] == Y.shape[0]
      return True
  
file_path: thinc/thinc/tests/util.py
imports: import contextlib
  import shutil
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  from thinc.api import ArgsKwargs, Linear, Padded, Ragged
  from thinc.util import has_cupy, is_cupy_array, is_numpy_array
label_desc: Use image node_id 5 for calling a global function with example usage: assert_arrays_match(X, Y) and returns: True