code: def test_mempool_2(self):
      from pycuda.tools import DeviceMemoryPool
      from random import randrange
  
      pool = DeviceMemoryPool()
  
      for i in range(2000):
          s = randrange(1 << 31) >> randrange(32)
          bin_nr = pool.bin_number(s)
          asize = pool.alloc_size(bin_nr)
  
          assert asize >= s, s
          assert pool.bin_number(asize) == bin_nr, s
          assert asize < asize * (1 + 1 / 8)
  
imports: import numpy
  import numpy.linalg
  from pycuda.tools import mark_cuda_test, dtype_to_ctype
  import pytest
  import pycuda.gpuarray
  import pycuda.driver
  from pycuda.compiler import SourceModule
label_desc: Use image node_id 20 for calling the TestDriver obj's underlying member method code with example usage: obj.test_mempool_2() without return types