code: def test_getitem_dense2dense(self):
      corpus = ShardedCorpus(
          self.tmp_fname,
          self.data,
          shardsize=100,
          dim=self.dim,
          sparse_serialization=False,
          sparse_retrieval=False,
      )
  
      item = corpus[3]
      self.assertTrue(isinstance(item, np.ndarray))
      self.assertEqual(item.shape, (corpus.dim,))
  
      dslice = corpus[2:6]
      self.assertTrue(isinstance(dslice, np.ndarray))
      self.assertEqual(dslice.shape, (4, corpus.dim))
  
      ilist = corpus[[2, 3, 4, 5]]
      self.assertTrue(isinstance(ilist, np.ndarray))
      self.assertEqual(ilist.shape, (4, corpus.dim))
  
      self.assertEqual(ilist.all(), dslice.all())
  
imports: import os
  import unittest
  import random
  import shutil
  import numpy
  from scipy import sparse
  from gensim.utils import is_corpus, mock_data
  from gensim.corpora.sharded_corpus import ShardedCorpus
label_desc: Use image node_id 7 for calling the TestShardedCorpus obj's underlying member method code with example usage: obj.test_getitem_dense2dense() without return types