code: def create_and_check_model(self, config, inputs_dict):
      model = BigBirdPegasusModel(config=config).to(torch_device).eval()
      input_ids = inputs_dict["input_ids"]
      decoder_input_ids = inputs_dict["decoder_input_ids"]
      result = model(
          input_ids, decoder_input_ids=decoder_input_ids, use_cache=True
      )
      self.parent.assertEqual(
          result.last_hidden_state.shape,
          (self.batch_size, self.seq_length, self.hidden_size),
      )
  
imports: import copy
  import tempfile
  import unittest
  from transformers import BigBirdPegasusConfig, is_torch_available
  from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, 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 7 for calling the BigBirdPegasusModelTester obj's underlying member method code with example usage: obj.create_and_check_model(config, inputs_dict) without return types