code: def intersects(anchors1, shapes1, anchors2, shapes2):
      for i in range(len(anchors1)):
          if (
              anchors1[i] + shapes1[i] <= anchors2[i]
              or anchors2[i] + shapes2[i] <= anchors1[i]
          ):
              return False
      return True
  
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 1 for calling a global function with example usage: intersects(anchors1, shapes1, anchors2, shapes2) and returns: True, False