code: def __init__(
      self,
      parent,
      batch_size=14,
      seq_length=7,
      mem_len=10,
      clamp_len=-1,
      reuse_len=15,
      is_training=True,
      use_labels=True,
      vocab_size=99,
      cutoffs=[10, 50, 80],
      hidden_size=32,
      num_attention_heads=4,
      d_inner=128,
      num_hidden_layers=2,
      type_sequence_label_size=2,
      untie_r=True,
      bi_data=False,
      same_length=False,
      initializer_range=0.05,
      seed=1,
      type_vocab_size=2,
      bos_token_id=1,
      eos_token_id=2,
      pad_token_id=5,
      num_choices=4,
  ):
      self.parent = parent
      self.batch_size = 14
      self.seq_length = 7
      self.mem_len = 10
      # self.key_len = seq_length + mem_len
      self.clamp_len = -1
      self.reuse_len = 15
      self.is_training = True
      self.use_labels = True
      self.vocab_size = 99
      self.cutoffs = [10, 50, 80]
      self.hidden_size = 32
      self.num_attention_heads = 4
      self.d_inner = 128
      self.num_hidden_layers = 5
      self.type_sequence_label_size = 2
      self.untie_r = True
      self.bi_data = False
      self.same_length = False
      self.initializer_range = 0.05
      self.seed = 1
      self.type_vocab_size = 2
      self.bos_token_id = 1
      self.eos_token_id = 2
      self.pad_token_id = 5
      self.num_choices = 4
  
imports: import random
  import unittest
  from transformers import XLNetConfig, is_torch_available
  from transformers.testing_utils import require_torch, slow, torch_device
  from ...generation.test_utils import GenerationTesterMixin
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 1 to create a new XLNetModelTester object  with example: obj = XLNetModelTester(parent, batch_size, seq_length, mem_len, clamp_len, reuse_len, is_training, use_labels, vocab_size, cutoffs, hidden_size, num_attention_heads, d_inner, num_hidden_layers, type_sequence_label_size, untie_r, bi_data, same_length, initializer_range, seed, type_vocab_size, bos_token_id, eos_token_id, pad_token_id, num_choices)