code: def _rt(c, values, default):
      # Continuous
      st = RamStorage()
      f = st.create_file("test1")
      f.write(b("hello"))
      w = c.writer(f)
      for docnum, v in enumerate(values):
          w.add(docnum, v)
      w.finish(len(values))
      length = f.tell() - 5
      f.close()
  
      f = st.open_file("test1")
      r = c.reader(f, 5, length, len(values))
      assert values == list(r)
      for x in range(len(values)):
          assert values[x] == r[x]
      f.close()
  
      # Sparse
      doccount = len(values) * 7 + 15
      target = [default] * doccount
  
      f = st.create_file("test2")
      f.write(b("hello"))
      w = c.writer(f)
      for docnum, v in izip(xrange(10, doccount, 7), values):
          target[docnum] = v
          w.add(docnum, v)
      w.finish(doccount)
      length = f.tell() - 5
      f.close()
  
      f = st.open_file("test2")
      r = c.reader(f, 5, length, doccount)
      assert target == list(r)
      for x in range(doccount):
          assert target[x] == r[x]
  
      lr = r.load()
      assert target == list(lr)
      f.close()
  
file_path: whoosh/tests/test_columns.py
imports: from __future__ import with_statement
  import inspect, random, sys
  from whoosh import columns, fields, query
  from whoosh.codec.whoosh3 import W3Codec
  from whoosh.compat import b, u, BytesIO, bytes_type, text_type
  from whoosh.compat import izip, xrange, dumps, loads
  from whoosh.filedb import compound
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex, TempStorage
label_desc: Use image node_id 4 for calling a global function with example usage: _rt(c, values, default) without return types