code: def check_slice_synth_data_vs_numpy(
      device,
      batch_size,
      input_shape,
      layout,
      axes,
      axis_names,
      normalized_anchor,
      normalized_shape,
      input_type,
      output_type,
  ):
      eiis = [
          RandomDataIterator(batch_size, shape=input_shape)
          for k in range(2)
      ]
      eii_args = [
          SliceArgsIterator(
              batch_size,
              len(input_shape),
              image_shape=input_shape,
              image_layout=layout,
              axes=axes,
              axis_names=axis_names,
              normalized_anchor=normalized_anchor,
              normalized_shape=normalized_shape,
          )
          for k in range(2)
      ]
  
      compare_pipelines(
          SliceSynthDataPipeline(
              device,
              batch_size,
              layout,
              iter(eiis[0]),
              iter(eii_args[0]),
              axes=axes,
              axis_names=axis_names,
              normalized_anchor=normalized_anchor,
              normalized_shape=normalized_shape,
              input_type=input_type,
              output_type=output_type,
          ),
          SliceSynthDataPipelinePythonOp(
              batch_size,
              layout,
              iter(eiis[0]),
              iter(eii_args[1]),
              axes=axes,
              axis_names=axis_names,
              normalized_anchor=normalized_anchor,
              normalized_shape=normalized_shape,
              input_type=input_type,
              output_type=output_type,
          ),
          batch_size=batch_size,
          N_iterations=3,
      )
  
imports: from nvidia.dali import Pipeline, pipeline_def, ops, fn, types
  import numpy
  import os
  from functools import partial
  from math import floor
  from test_utils import compare_pipelines, get_dali_extra_path, RandomDataIterator, generator_random_axes_for_3d_input, generator_random_data, as_array
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 4 for calling a global function with example usage: check_slice_synth_data_vs_numpy(device, batch_size, input_shape, layout, axes, axis_names, normalized_anchor, normalized_shape, input_type, output_type) without return types