code: def test_score_retrieval():
      schema = fields.Schema(
          title=fields.TEXT(stored=True),
          content=fields.TEXT(stored=True),
      )
      storage = RamStorage()
      ix = storage.create_index(schema)
      writer = ix.writer()
      writer.add_document(
          title=u("Miss Mary"),
          content=u(
              "Mary had a little white lamb its fleece"
              " was white as snow"
          ),
      )
      writer.add_document(
          title=u("Snow White"),
          content=u(
              "Snow white lived in the forest with seven" " dwarfs"
          ),
      )
      writer.commit()
  
      with ix.searcher() as s:
          results = s.search(query.Term("content", "white"))
          assert len(results) == 2
          assert results[0]["title"] == u("Miss Mary")
          assert results[1]["title"] == u("Snow White")
          assert results.score(0) is not None
          assert results.score(0) != 0
          assert results.score(0) != 1
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, formats, highlight, qparser, query
  from whoosh.codec.whoosh3 import W3Codec
  from whoosh.compat import u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempStorage, TempIndex
label_desc: Use image node_id 1 for calling a global function with example usage: test_score_retrieval() without return types