code: def test_set_target_labels_where_existing_labels_are_outside_of_given_set(
      self,
  ):
      ds = self._random_data(num_samples=self.NUM_SAMPLES)
      new_target_labels = np.array([0])
      with self.assertRaisesRegex(
          ValueError, "Cannot remove existing labels"
      ):
          ds.target_labels = new_target_labels
  
imports: import unittest
  import pytest
  import numpy
  from scipy.sparse import csr_matrix
  from numpy.testing import assert_array_equal
  from parameterized import parameterized_class
  from small_text.base import LABEL_UNLABELED
  from small_text.integrations.pytorch.datasets import PytorchDatasetView
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
  from tests.utils.misc import increase_dense_labels_safe
  from tests.utils.testing import assert_array_not_equal, assert_csr_matrix_equal, assert_csr_matrix_not_equal, assert_list_of_tensors_equal, assert_list_of_tensors_not_equal
label_desc: Use image node_id 14 for calling the TransformersDatasetTest obj's underlying member method code with example usage: obj.test_set_target_labels_where_existing_labels_are_outside_of_given_set() without return types