code: def _free_pending_blocks(self):
      # Free all the blocks in the pending list - called with the lock held.
      while True:
          try:
              block = self._pending_free_blocks.pop()
          except IndexError:
              break
          self._add_free_block(block)
          self._remove_allocated_block(block)
  
imports: import bisect
  from collections import defaultdict
  import mmap
  import os
  import sys
  import tempfile
  import threading
  from .context import reduction, assert_spawning
  from .None import util
label_desc: Use image node_id 9 for calling the Heap obj's underlying member method code with example usage: obj._free_pending_blocks() without return types