code: def test_from_arrays_with_test_data_and_no_vocab(self):
      texts_test = np.array([f"test data {i}" for i in range(10)])
      labels_test = np.array([random_labeling(3) for _ in range(10)])
  
      text_field = get_text_field()
  
      with self.assertRaisesRegex(
          ValueError, "Vocab must have been built"
      ):
          PytorchTextClassificationDataset.from_arrays(
              texts_test, labels_test, text_field, train=False
          )
  
file_path: small-text/tests/unit/small_text/integrations/pytorch/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 4 for calling the PytorchTextClassificationDatasetSingleLabelTest obj's underlying member method code with example usage: obj.test_from_arrays_with_test_data_and_no_vocab() without return types