code: def test_factory_new(self):
      num_classes = 2
      kwargs = {"lr": 0.123}
      factory = TransformerBasedClassificationFactory(
          TransformerModelArguments(
              "sshleifer/tiny-distilroberta-base"
          ),
          num_classes,
          kwargs=kwargs,
      )
      clf = factory.new()
      self.assertTrue(isinstance(clf, TransformerBasedClassification))
      self.assertEqual(num_classes, clf.num_classes)
      self.assertEqual(kwargs["lr"], clf.lr)
  
file_path: small-text/tests/unit/small_text/integrations/transformers/classifiers/test_factories.py
imports: import unittest
  import pytest
  from small_text.exceptions import MissingOptionalDependencyError
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 for calling the TransformerBasedClassificationFactoryTest obj's underlying member method code with example usage: obj.test_factory_new() without return types