code: def test_random_initialization(self):
      x = random_sklearn_dataset(100, vocab_size=2)
      indices = random_initialization(x)
  
      self.assertEqual(10, len(indices))
      self.assertEqual(10, len(np.unique(indices)))
      self.assertTrue(all([i >= 0 and i < len(x) for i in indices]))
  
imports: import unittest
  import numpy
  from unittest.mock import patch
  from scipy.sparse import csr_matrix
  from small_text.data import balanced_sampling, stratified_sampling
  from small_text.initialization import random_initialization, random_initialization_stratified, random_initialization_balanced
  from tests.utils.datasets import random_sklearn_dataset
label_desc: Use image node_id 1 for calling the RandomInitializationTest obj's underlying member method code with example usage: obj.test_random_initialization() without return types