code: def __init__(self, size):
      if size < 0:
          raise ValueError("Size {0:n} out of range".format(size))
      if sys.maxsize <= size:
          raise OverflowError("Size {0:n} too large".format(size))
      block = BufferWrapper._heap.malloc(size)
      self._state = (block, size)
      util.Finalize(self, BufferWrapper._heap.free, args=(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 1 to create a new BufferWrapper object from inherited base classes: object with example: obj = BufferWrapper(size)