code: def test_resize(self):
      dataset = ShardedCorpus(
          self.tmp_fname, self.data, shardsize=100, dim=self.dim
      )
  
      self.assertEqual(10, dataset.n_shards)
  
      dataset.resize_shards(250)
  
      self.assertEqual(4, dataset.n_shards)
      for n in range(dataset.n_shards):
          fname = dataset._shard_name(n)
          self.assertTrue(os.path.isfile(fname))
  
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 12 for calling the TestShardedCorpus obj's underlying member method code with example usage: obj.test_resize() without return types