code: def check_transform(transform, in_data, out_data):
      model = registry.resolve({"config": {"@layers": transform}})[
          "config"
      ]
      input_checker = get_data_checker(in_data)
      output_checker = get_data_checker(out_data)
      model.initialize(in_data, out_data)
      Y, backprop = model(in_data, is_train=True)
      output_checker(Y, out_data)
      dX = backprop(Y)
      input_checker(dX, in_data)
  
file_path: thinc/thinc/tests/layers/test_transforms.py
imports: import numpy
  import pytest
  from thinc.api import NumpyOps, Ragged, registry, strings2arrays
  from ..util import get_data_checker
label_desc: Use image node_id 7 for calling a global function with example usage: check_transform(transform, in_data, out_data) without return types