code: def create_transfo_xl_model(
      self, config, input_ids_1, input_ids_2, lm_labels
  ):
      model = TransfoXLModel(config)
      model.to(torch_device)
      model.eval()
  
      outputs1 = model(input_ids_1)
      outputs2 = model(input_ids_2, outputs1["mems"])
      outputs = {
          "hidden_states_1": outputs1["last_hidden_state"],
          "mems_1": outputs1["mems"],
          "hidden_states_2": outputs2["last_hidden_state"],
          "mems_2": outputs2["mems"],
      }
      return outputs
  
imports: import copy
  import random
  import unittest
  from transformers import TransfoXLConfig, is_torch_available
  from transformers.testing_utils import require_torch, require_torch_multi_gpu, slow, torch_device
  from ...generation.test_generation_utils import GenerationTesterMixin
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor
label_desc: Use image node_id 5 for calling the TransfoXLModelTester obj's underlying member method code with example usage: obj.create_transfo_xl_model(config, input_ids_1, input_ids_2, lm_labels) and returns: outputs