code: def random_initialization(x, n_samples=10):
      """Randomly draws a subset from the given dataset.
  
      Parameters
      ----------
      x : Dataset
          A dataset.
      n_samples : int, default=10
          Number of samples to draw.
  
      Returns
      -------
      indices : np.ndarray[int]
          Indices relative to x.
      """
      return np.random.choice(
          list_length(x), size=n_samples, replace=False
      )
  
file_path: small-text/small_text/initialization/strategies.py
imports: import numpy
  from scipy.sparse import csr_matrix
  from small_text.utils.data import list_length
  from small_text.data.sampling import balanced_sampling
  from small_text.data.sampling import multilabel_stratified_subsets_sampling
  from small_text.data.sampling import stratified_sampling
label_desc: Use image node_id 1 for calling a global function with example usage: random_initialization(x, n_samples) and returns: np