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: Get index vector at position `pos`.
  
  Parameters
  ----------
  pos : int
      Vector position.
  
  Return
  ------
  {:class:`scipy.sparse.csr_matrix`, :class:`numpy.ndarray`}
      Index vector. Type depends on underlying index.
  
  Notes
  -----
  The vector is of the same type as the underlying index (ie., dense for
  :class:`~gensim.similarities.docsim.MatrixSimilarity`
  and scipy.sparse for :class:`~gensim.similarities.docsim.SparseMatrixSimilarity`.
code: def get_document_id(self, pos):
      """Get index vector at position `pos`.
  
      Parameters
      ----------
      pos : int
          Vector position.
  
      Return
      ------
      {:class:`scipy.sparse.csr_matrix`, :class:`numpy.ndarray`}
          Index vector. Type depends on underlying index.
  
      Notes
      -----
      The vector is of the same type as the underlying index (ie., dense for
      :class:`~gensim.similarities.docsim.MatrixSimilarity`
      and scipy.sparse for :class:`~gensim.similarities.docsim.SparseMatrixSimilarity`.
  
      """
      assert 0 <= pos < len(self), "requested position out of range"
      return self.get_index().index[pos]
  
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 7 for calling the Shard obj's underlying member method code with example usage: obj.get_document_id(pos) and returns: self