code: def test_per_sample_laplacian():
      batch_size = 10
      for device in ["cpu", "gpu"]:
          for in_type in [np.uint8]:
              for out_type in [None, np.float32]:
                  for shape, layout, axes in shape_layout_axes_cases:
                      for normalize in [True, False]:
                          yield (
                              check_per_sample_laplacian,
                              device,
                              batch_size,
                              1,
                              1,
                              normalize,
                              shape,
                              layout,
                              axes,
                              in_type,
                              out_type,
                          )
  
imports: from nvidia.dali.pipeline import pipeline_def
  import nvidia.dali.types
  import nvidia.dali.fn
  import numpy
  import cv2
  from scipy.ndimage import convolve1d, filters
  import os
  from nose_utils import assert_raises
  from nose.plugins.attrib import attr
  from sequences_test_utils import video_suite_helper, ArgCb
  from test_utils import get_dali_extra_path, check_batch, RandomlyShapedDataIterator
label_desc: Use image node_id 21 for calling a global function with example usage: test_per_sample_laplacian() without return types