code: def test_free_all_blocks2(self):
      mem = self.pool.malloc(1).mem
      assert isinstance(mem, pinned_memory.PinnedMemory)
      assert isinstance(mem, pinned_memory.PooledPinnedMemory)
      assert self.pool.n_free_blocks() == 0
      mem.free()
      assert self.pool.n_free_blocks() == 1
      self.pool.free_all_blocks()
      assert self.pool.n_free_blocks() == 0
  
imports: import unittest
  from cupy.cuda import pinned_memory
label_desc: Use image node_id 6 for calling the TestSingleDeviceMemoryPool obj's underlying member method code with example usage: obj.test_free_all_blocks2() without return types