code: def _heappop_max(heap):
      """Maxheap version of a heappop."""
      lastelt = (
          heap.pop()
      )  # raises appropriate IndexError if heap is empty
      if heap:
          returnitem = heap[0]
          heap[0] = lastelt
          _siftup_max(heap, 0)
          return returnitem
      return lastelt
  
file_path: cpython/Lib/heapq.py
label_desc: Use image node_id 6 for calling a global function with example usage: _heappop_max(heap) and returns: lastelt, returnitem