docstr: Creates a new TransformerBasedClassification instance.
  
  Returns
  -------
  classifier : TransformerBasedClassification
      A new instance of TransformerBasedClassification which is initialized with the given keyword args `kwargs`.
docstr_tok: ["Creates","a","new","TransformerBasedClassification","instance",".","Returns","--","--","--","-","classifier",":","TransformerBasedClassification","A","new","instance","of","TransformerBasedClassification","which","is","initialized","with","the","given","keyword","args","`","kwargs","`","."]
code: def new(self):
      """Creates a new TransformerBasedClassification instance.
  
      Returns
      -------
      classifier : TransformerBasedClassification
          A new instance of TransformerBasedClassification which is initialized with the given keyword args `kwargs`.
      """
      return TransformerBasedClassification(
          self.transformer_model_args, self.num_classes, **self.kwargs
      )
  
file_path: small-text/small_text/integrations/transformers/classifiers/factories.py
imports: from small_text.classifiers.factories import AbstractClassifierFactory
  from small_text.integrations.transformers.classifiers.classification import TransformerBasedClassification
  from small_text.integrations.transformers.classifiers.setfit import SetFitClassification
label_desc: Use image node_id 2 for calling the TransformerBasedClassificationFactory obj's underlying member method code with example usage: obj.new() and returns: TransformerBasedClassification