code: def test_from_arrays_with_lists(self):
      texts = [f"train data {i}" for i in range(10)]
      labels = np.array([random_labeling(3) for _ in range(10)])
      tokenizer = AutoTokenizer.from_pretrained(
          "sshleifer/tiny-distilroberta-base"
      )
  
      dataset = TransformersDataset.from_arrays(
          texts, labels, tokenizer
      )
      self.assertEqual(10, len(dataset))
  
file_path: small-text/tests/unit/small_text/integrations/transformers/test_dataset_construction.py
imports: import unittest
  import pytest
  import numpy
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
  from tests.utils.datasets import random_labeling, random_labels
label_desc: Use image node_id 1 for calling the TransformersDatasetSingleLabelTest obj's underlying member method code with example usage: obj.test_from_arrays_with_lists() without return types