code: def test_stored_tuple():
      schema = fields.Schema(a=fields.STORED, b=fields.ID)
  
      with TempIndex(schema) as ix:
          with ix.writer() as w:
              w.add_document(a=("foo", 20))
  
          with ix.searcher() as s:
              assert s.stored_fields(0) == {"a": ("foo", 20)}
  
      with TempIndex(schema) as ix:
          with ix.writer() as w:
              w.add_document(a=("alfa", 1), b="a")
              w.add_document(a=("bravo", 2), b="b")
              w.add_document(a=("charlie", 3), b="c")
              w.add_document(a=("delta", 4), b="d")
  
          with ix.writer() as w:
              w.add_document(a=("echo", 5), b="e")
              w.add_document(a=("foxtrot", 6), b="f")
              w.add_document(a=("golf", 7), b="g")
              w.add_document(a=("hotel", 8), b="h")
              w.merge = False
  
          with ix.searcher() as s:
              doc = s.document(b="f")
              assert doc["a"] == ("foxtrot", 6)
  
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 31 for calling a global function with example usage: test_stored_tuple() without return types