code: def check_results(
      T1, batch_size, mat_ref, T0=None, reverse=False, atol=1e-6
  ):
      for idx in range(batch_size):
          check_results_sample(
              T1.at(idx),
              mat_ref,
              T0.at(idx) if T0 is not None else None,
              reverse,
              atol,
          )
  
imports: import random
  import warnings
  import numpy
  from scipy.spatial.transform import Rotation
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops.transforms
  import nvidia.dali.ops
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  from sequences_test_utils import ArgData, ArgDesc, sequence_suite_helper, ArgCb, ParamsProvider
  from nose_utils import assert_raises
label_desc: Use image node_id 2 for calling a global function with example usage: check_results(T1, batch_size, mat_ref, T0, reverse, atol) without return types