code: def __init__(
      self,
      name: Text,
      config: Dict[Text, Any],
      data_signature: Dict[Text, Dict[Text, List[FeatureSignature]]],
      label_data: RasaModelData,
  ) -> None:
      super().__init__(name=name, random_seed=config[RANDOM_SEED])
  
      self.config = config
      self.data_signature = data_signature
      self.label_signature = label_data.get_signature()
      self._check_data()
  
      label_batch = RasaDataGenerator.prepare_batch(label_data.data)
      self.tf_label_data = self.batch_to_model_data_format(
          label_batch, self.label_signature
      )
  
      # set up tf layers
      self._tf_layers: Dict[Text, tf.keras.layers.Layer] = {}
  
imports: import time
  import random
  import tensorflow
  import numpy
  import logging
  import os
  from collections import defaultdict
  from typing import List, Text, Dict, Tuple, Union, Optional, Any, TYPE_CHECKING
  from keras.utils import tf_utils
  from keras import Model
  from rasa.shared.constants import DIAGNOSTIC_DATA
  from rasa.utils.tensorflow.constants import LABEL, IDS, INTENT_CLASSIFICATION, SENTENCE, SEQUENCE_LENGTH, RANDOM_SEED, EMBEDDING_DIMENSION, REGULARIZATION_CONSTANT, SIMILARITY_TYPE, CONNECTION_DENSITY, NUM_NEG, LOSS_TYPE, MAX_POS_SIM, MAX_NEG_SIM, USE_MAX_NEG_SIM, NEGATIVE_MARGIN_SCALE, SCALE_LOSS, LEARNING_RATE, CONSTRAIN_SIMILARITIES, MODEL_CONFIDENCE, RUN_EAGERLY
  from rasa.utils.tensorflow.model_data import RasaModelData, FeatureSignature, FeatureArray
  import rasa.utils.train_utils
  from rasa.utils.tensorflow import layers
  from rasa.utils.tensorflow import rasa_layers
  from rasa.utils.tensorflow.data_generator import RasaDataGenerator, RasaBatchDataGenerator
  from rasa.shared.nlu.constants import TEXT
  from rasa.shared.exceptions import RasaException
  from rasa.utils.tensorflow.types import BatchData, MaybeNestedBatchData
label_desc: Use image node_id 1 to create a new TransformerRasaModel object from inherited base classes: RasaModel with example: obj = TransformerRasaModel(name, config, data_signature, label_data)