code: def test_factory_new(self):
      vocab_length = 10
      embedding_matrix = torch.Tensor(np.random.rand(vocab_length, 100))
      factory = KimCNNFactory(
          "kimcnn", 6, {"embedding_matrix": embedding_matrix}
      )
  
      clf = factory.new()
      self.assertTrue(isinstance(clf, KimCNNClassifier))
      self.assertEqual(6, clf.num_classes)
  
imports: import unittest
  import pytest
  import numpy
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 for calling the KimCNNFactoryTest obj's underlying member method code with example usage: obj.test_factory_new() without return types