code: def test_pickle_schema():
      from whoosh import analysis
      from whoosh.support.charset import accent_map
      from whoosh.compat import dumps
  
      freetext_analyzer = (
          analysis.StemmingAnalyzer()
          | analysis.CharsetFilter(accent_map)
      )
  
      schema = fields.Schema(
          path=fields.ID(stored=True, unique=True),
          file_mtime=fields.DATETIME(stored=True),
          name=fields.TEXT(stored=False, field_boost=2.0),
          description=fields.TEXT(
              stored=False, field_boost=1.5, analyzer=freetext_analyzer
          ),
          content=fields.TEXT(analyzer=freetext_analyzer),
      )
  
      # Try to make some sentences that will require stemming
      docs = [
          "The rain in spain falls mainly in the plain",
          "Plainly sitting on the plain",
          "Imagine a greatly improved sentence here",
      ]
  
      with TempIndex(schema) as ix:
          with ix.writer() as w:
              for doc in docs:
                  w.add_document(description=doc, content=doc)
  
          assert dumps(schema, 2)
  
          with ix.reader() as r:
              assert dumps(r.schema, 2)
  
imports: from __future__ import with_statement
  from datetime import datetime, timedelta
  import pytest
  from whoosh import fields, qparser, query
  from whoosh.compat import u, b, xrange
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util import times
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 28 for calling a global function with example usage: test_pickle_schema() without return types