code: def test_retain_grad_hidden_states_attentions(self):
      # bigbird cannot keep gradients in attentions when `attention_type=block_sparse`
  
      if self.model_tester.attention_type == "original_full":
          super().test_retain_grad_hidden_states_attentions()
  
imports: import unittest
  from transformers import BigBirdConfig, is_torch_available
  from transformers.models.auto import get_values
  from transformers.models.big_bird.tokenization_big_bird import BigBirdTokenizer
  from transformers.testing_utils import require_torch, slow, torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor, ids_tensor, random_attention_mask
label_desc: Use image node_id 14 for calling the BigBirdModelTest obj's underlying member method code with example usage: obj.test_retain_grad_hidden_states_attentions() without return types