docstr: Return whether the given Image is the parent of image.
  Used by __init__.
docstr_tok: ["Return","whether","the","given","Image","is","the","parent","of","image",".","Used","by","__init__","."]
code: def _is_parent(parent, child):
      """
      Return whether the given Image is the parent of image.
      Used by __init__.
  
      """
      result = False
      pbox = parent.bbox()
      cbox = child.bbox()
      if pbox.area > cbox.area:
          result = pbox.intersects(cbox) and not pbox.touches(cbox)
      return result
  
imports: import collections
  from pathlib import Path
  import numpy
  from PIL import Image
  import shapely.geometry
label_desc: Use image node_id 2 for calling the NestedImageCollection obj's underlying member method code with example usage: obj._is_parent(parent, child) and returns: result