code: def test_operator_multipaste():
      in_anchor = ((10, 10), (20, 20))
      tests = [
          # The arguments are:
          # - batch size
          # - average paster per output
          # - input dimensions
          # - output dimensions
          # - should each output have same number of pastes
          # - should generated pastes have no intersections
          # - should "shapes" parameter be omitted (shape to cover from input anchor to input end)
          # - should "in_anchors" parameter be omitted
          # - (Optional) in_anchor value range ((xmin, y_min), (xmax, ymax))
          # - should "out_anchors" parameter be omitted
          # - (Optional) out_anchor value range ((xmin, y_min), (xmax, ymax))
          # - output dtype
          # - number of out-of-bounds anchor changes
          [
              4,
              2,
              (128, 256),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (256, 128),
              (128, 128),
              False,
              True,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (256, 128),
              True,
              False,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (128, 256),
              True,
              True,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (64, 64),
              (128, 128),
              False,
              False,
              True,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (64, 64),
              (128, 128),
              False,
              False,
              True,
              False,
              in_anchor,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (64, 64),
              (128, 128),
              False,
              False,
              False,
              True,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (64, 64),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              True,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.INT16,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.INT32,
              0,
          ],
          [
              4,
              2,
              (128, 128),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.FLOAT,
              0,
          ],
          [
              4,
              2,
              (128, 256),
              (128, 128),
              False,
              False,
              False,
              False,
              None,
              False,
              None,
              types.UINT8,
              4,
          ],
      ]
      for t in tests:
          yield (check_operator_multipaste, *t, "cpu")
          yield (check_operator_multipaste, *t, "gpu")
  
file_path: DALI/dali/test/python/operator_1/test_multipaste.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import os
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 8 for calling a global function with example usage: test_operator_multipaste() without return types