code: def _replace_placeholder_with(self, element):
          
          element._nvXxPr.nvPr._insert_ph(self._element.ph)
          self._element.addprevious(element)
          self._element.getparent().remove(self._element)
          self._element = None
docs: Substitute *element* for this placeholder element in the shapetree.
          This placeholder's `._element` attribute is set to |None| and its
          original element is free for garbage collection. Any attribute access
          (including a method call) on this placeholder after this call raises
          |AttributeError|.