code: def test_version_in():
      with TempStorage("versionin") as st:
          assert not index.exists(st)
  
          schema = fields.Schema(text=fields.TEXT)
          ix = st.create_index(schema)
          assert index.exists(st)
          assert ix.is_empty()
  
          v = index.version(st)
          assert v[0] == __version__
          assert v[1] == index._CURRENT_TOC_VERSION
  
          with ix.writer() as w:
              w.add_document(text=u("alfa"))
  
          assert not ix.is_empty()
  
imports: from __future__ import with_statement
  import random
  from collections import defaultdict
  from datetime import datetime
  import pytest
  from whoosh import analysis, fields, index, qparser, query, __version__
  from whoosh.compat import b, u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.writing import IndexingError
  from whoosh.util.numeric import length_to_byte, byte_to_length
  from whoosh.util.testing import TempIndex, TempStorage
label_desc: Use image node_id 3 for calling a global function with example usage: test_version_in() without return types