code: def test_dataloader_train(self):
      ds = random_text_classification_dataset(10)
      loader = dataloader(ds, 3, kimcnn_collate_fn)
  
      self.assertTrue(isinstance(loader.sampler, BatchSampler))
      self.assertTrue(isinstance(loader.sampler.sampler, RandomSampler))
      self.assertTrue(isinstance(loader.dataset, np.ndarray))
  
file_path: small-text/tests/unit/small_text/integrations/pytorch/utils/test_data.py
imports: import unittest
  import numpy
  import pytest
  import torch
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from scipy.sparse import csr_matrix
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 for calling the DataloaderTest obj's underlying member method code with example usage: obj.test_dataloader_train() without return types