code: def test_for_change_to_full_attn(self):
      self.model_tester.seq_length = 9
      config, input_dict = self.model_tester.prepare_config_and_inputs()
  
      # automatic switch will happen
      config.attention_type = "block_sparse"
      model = (
          BigBirdPegasusForConditionalGeneration(config)
          .eval()
          .to(torch_device)
      )
      state_dict = model.state_dict()
      outputs1 = model(**input_dict)["logits"]
  
      config.attention_type = "original_full"
      model = (
          BigBirdPegasusForConditionalGeneration(config)
          .eval()
          .to(torch_device)
      )
      model.load_state_dict(state_dict)
      outputs2 = model(**input_dict)["logits"]
  
      self.assertTrue(torch.allclose(outputs1, outputs2, atol=1e-5))
  
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 16 for calling the BigBirdPegasusModelTest obj's underlying member method code with example usage: obj.test_for_change_to_full_attn() without return types