code: def verify_out_of_bounds(
      batch_size,
      in_idx_l,
      in_anchors_l,
      shapes_l,
      out_anchors_l,
      in_size,
      out_size,
  ):
      for i in range(batch_size):
          for j, idx in enumerate(in_idx_l[i]):
              dim = len(in_anchors_l[i][j])
              for d in range(dim):
                  if (
                      in_anchors_l[i][j][d] < 0
                      or out_anchors_l[i][j][d] < 0
                      or in_anchors_l[i][j][d] + shapes_l[i][j][d]
                      > in_size[d]
                      or out_anchors_l[i][j][d] + shapes_l[i][j][d]
                      > out_size[d]
                  ):
                      return True
      return False
  
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 4 for calling a global function with example usage: verify_out_of_bounds(batch_size, in_idx_l, in_anchors_l, shapes_l, out_anchors_l, in_size, out_size) and returns: False, True