code: def crop_contains(crop_anchor, crop_shape, point):
      ndim = len(crop_shape)
      assert len(crop_shape) == ndim
      assert len(point) == ndim
  
      point = np.array(point)
      crop_anchor = np.array(crop_anchor)
      crop_shape = np.array(crop_shape)
  
      if np.any(np.less(point, crop_anchor)) or np.any(
          np.greater(point, (crop_anchor + crop_shape))
      ):
          return False
      return True
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: crop_contains(crop_anchor, crop_shape, point) and returns: True, False