code: def test_init_parameters(self):
      model_args = TransformerModelArguments("bert-base-uncased")
      num_classes = 3
      multi_label = False
      num_epochs = 20
      lr = 1e-5
      mini_batch_size = 24
      validation_set_size = 0.05
      validations_per_epoch = 5
      early_stopping_no_improvement = 10
      early_stopping_acc = 0.99
      model_selection = True
      fine_tuning_arguments = FineTuningArguments(5e-5, 0.99)
      device = "cuda"
      memory_fix = 1
      class_weight = "balanced"
      verbosity = (VERBOSITY_MORE_VERBOSE,)
      cache_dir = ".active_learning_lib_cache/"
  
      classifier = TransformerBasedClassification(
          model_args,
          num_classes,
          num_epochs=num_epochs,
          lr=lr,
          mini_batch_size=mini_batch_size,
          validation_set_size=validation_set_size,
          validations_per_epoch=validations_per_epoch,
          early_stopping_no_improvement=early_stopping_no_improvement,
          early_stopping_acc=early_stopping_acc,
          model_selection=model_selection,
          fine_tuning_arguments=fine_tuning_arguments,
          device=device,
          memory_fix=memory_fix,
          class_weight=class_weight,
          verbosity=verbosity,
          cache_dir=cache_dir,
      )
  
      self.assertEqual(num_classes, classifier.num_classes)
      self.assertEqual(multi_label, classifier.multi_label)
      self.assertEqual(num_epochs, classifier.num_epochs)
      self.assertEqual(lr, classifier.lr)
      self.assertEqual(mini_batch_size, classifier.mini_batch_size)
      self.assertEqual(
          validation_set_size, classifier.validation_set_size
      )
      self.assertEqual(
          validations_per_epoch, classifier.validations_per_epoch
      )
      self.assertEqual(
          early_stopping_no_improvement,
          classifier.early_stopping_no_improvement,
      )
      self.assertEqual(
          early_stopping_acc, classifier.early_stopping_acc
      )
      self.assertEqual(model_selection, classifier.model_selection)
      self.assertEqual(
          fine_tuning_arguments, classifier.fine_tuning_arguments
      )
      self.assertEqual(device, classifier.device)
      self.assertEqual(memory_fix, classifier.memory_fix)
      self.assertEqual(class_weight, classifier.class_weight)
      self.assertEqual(verbosity, classifier.verbosity)
      self.assertEqual(cache_dir, classifier.cache_dir)
  
imports: import unittest
  import pytest
  import numpy
  from unittest.mock import patch
  from small_text.base import LABEL_UNLABELED
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
  from small_text.training.early_stopping import EarlyStopping, EarlyStoppingOrCondition
  from small_text.training.metrics import Metric
  from small_text.utils.logging import VERBOSITY_MORE_VERBOSE
label_desc: Use image node_id 2 for calling the TestTransformerBasedClassification obj's underlying member method code with example usage: obj.test_init_parameters() without return types