code: def test_resultcopy():
      schema = fields.Schema(a=fields.TEXT(stored=True))
      st = RamStorage()
      ix = st.create_index(schema)
  
      w = ix.writer()
      w.add_document(a=u("alfa bravo charlie"))
      w.add_document(a=u("bravo charlie delta"))
      w.add_document(a=u("charlie delta echo"))
      w.add_document(a=u("delta echo foxtrot"))
      w.commit()
  
      with ix.searcher() as s:
          r = s.search(
              qparser.QueryParser("a", None).parse(u("charlie"))
          )
          assert len(r) == 3
          rcopy = r.copy()
          assert r.top_n == rcopy.top_n
  
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 2 for calling a global function with example usage: test_resultcopy() without return types