code: def check_caffe2(label_type):
      path = (
          c2lmdb_no_label_db_folder
          if label_type == 4
          else c2lmdb_db_folder
      )
      new_pipe = caffe2_pipe(fn.readers.caffe2, path, label_type)
      legacy_pipe = caffe2_pipe(fn.caffe2_reader, path, label_type)
      compare_pipelines(
          new_pipe, legacy_pipe, batch_size_alias_test, 50
      )
  
imports: from nvidia.dali import Pipeline, pipeline_def
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  from numpy.testing import assert_array_equal
  import os
  from test_utils import compare_pipelines
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 7 for calling a global function with example usage: check_caffe2(label_type) without return types