code: def create_and_check_transfo_xl_model(
      self, config, input_ids_1, input_ids_2, lm_labels
  ):
      model = TFTransfoXLModel(config)
  
      hidden_states_1, mems_1 = model(input_ids_1).to_tuple()
  
      inputs = {"input_ids": input_ids_2, "mems": mems_1}
  
      hidden_states_2, mems_2 = model(inputs).to_tuple()
  
      self.parent.assertEqual(
          hidden_states_1.shape,
          (self.batch_size, self.seq_length, self.hidden_size),
      )
      self.parent.assertEqual(
          hidden_states_2.shape,
          (self.batch_size, self.seq_length, self.hidden_size),
      )
      self.parent.assertListEqual(
          [mem.shape for mem in mems_1],
          [(self.mem_len, self.batch_size, self.hidden_size)]
          * self.num_hidden_layers,
      )
      self.parent.assertListEqual(
          [mem.shape for mem in mems_2],
          [(self.mem_len, self.batch_size, self.hidden_size)]
          * self.num_hidden_layers,
      )
  
imports: import random
  import unittest
  from transformers import TransfoXLConfig, is_tf_available
  from transformers.testing_utils import require_tf, slow
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, ids_tensor
label_desc: Use image node_id 4 for calling the TFTransfoXLModelTester obj's underlying member method code with example usage: obj.create_and_check_transfo_xl_model(config, input_ids_1, input_ids_2, lm_labels) without return types