class_docstr: A proxy that represents a single shard instance within :class:`~gensim.similarity.docsim.Similarity` index.
  
  Basically just wraps :class:`~gensim.similarities.docsim.MatrixSimilarity`,
  :class:`~gensim.similarities.docsim.SparseMatrixSimilarity`, etc, so that it mmaps from disk on request (query).
class_docstr_tok: ["A","proxy","that","represents","a","single","shard","instance","within",":","class",":","`","~gensim.similarity.docsim.Similarity","`","index",".","Basically","just","wraps",":","class",":","`","~gensim.similarities.docsim.MatrixSimilarity","`",",",":","class",":","`","~gensim.similarities.docsim.SparseMatrixSimilarity","`",",","etc",",","so","that","it","mmaps","from","disk","on","request","(","query",")","."]
docstr: Special handler for pickle.
  
  Returns
  -------
  dict
      Object that contains state of current instance without `index`.
code: def __getstate__(self):
      """Special handler for pickle.
  
      Returns
      -------
      dict
          Object that contains state of current instance without `index`.
  
      """
      result = self.__dict__.copy()
      # (S)MS objects must be loaded via load() because of mmap (simple pickle.load won't do)
      if "index" in result:
          del result["index"]
      return result
  
imports: import logging
  import itertools
  import os
  import heapq
  import warnings
  import numpy
  import scipy.sparse
  from gensim import interfaces, utils, matutils
label_desc: Use image node_id 4 for calling the Shard obj's underlying member method code with example usage: obj.__getstate__() and returns: result