code: def removeChild(self, position):
          
          assert 0 <= position <= len(self.childItems), \
              "position should be 0 < {} <= {}".format(position, len(self.childItems))
  
          self.childItems[position].finalize()
          self.childItems.pop(position)
docs: Removes the child at the position 'position'
              Calls the child item finalize to close its resources before removing it.