code: def test_zero_procs():
      schema = fields.Schema(text=fields.TEXT)
      ix = RamStorage().create_index(schema)
      with ix.writer(procs=0) as w:
          assert isinstance(w, writing.IndexWriter)
  
      with ix.writer(procs=1) as w:
          assert isinstance(w, writing.IndexWriter)
  
imports: from __future__ import with_statement
  import random, time, threading
  import pytest
  from whoosh import analysis, fields, query, writing
  from whoosh.compat import b, u, xrange, text_type
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 17 for calling a global function with example usage: test_zero_procs() without return types