code: def get_data_checker(inputs):
      if isinstance(inputs, Ragged):
          return assert_raggeds_match
      elif isinstance(inputs, Padded):
          return assert_paddeds_match
      elif isinstance(inputs, list):
          return assert_lists_match
      elif isinstance(inputs, tuple) and len(inputs) == 4:
          return assert_padded_data_match
      elif isinstance(inputs, tuple) and len(inputs) == 2:
          return assert_ragged_data_match
      else:
          return assert_arrays_match
  
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 4 for calling a global function with example usage: get_data_checker(inputs) and returns: assert_raggeds_match, assert_paddeds_match, assert_lists_match, assert_padded_data_match, assert_ragged_data_match, assert_arrays_match