code: def test_generation(self):
      model = AutoModelForSeq2SeqLM.from_config(self.config())
      adapters.init(model)
      model.add_adapter("test", config="pfeiffer")
      model.set_active_adapters("test")
      tokenizer = AutoTokenizer.from_pretrained(
          self.tokenizer_name, use_fast=False
      )
  
      text = "This is a test sentence."
      input_ids = tokenizer(text, return_tensors="pt").input_ids
  
      generated_ids = model.generate(input_ids, bos_token_id=100)
      generated_text = tokenizer.batch_decode(
          generated_ids, skip_special_tokens=True
      )[0]
      self.assertNotEqual("", generated_text)
  
imports: import unittest
  import adapters
  from hf_transformers.tests.models.encoder_decoder.test_modeling_encoder_decoder import *
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, BertConfig
  from transformers.testing_utils import require_torch, torch_device
  from .methods import BottleneckAdapterTestMixin, CompacterTestMixin, IA3TestMixin, LoRATestMixin, PrefixTuningTestMixin, UniPELTTestMixin
  from .test_adapter import AdapterTestBase
  from .test_adapter_fusion_common import AdapterFusionModelTestMixin
label_desc: Use image node_id 1 for calling the EncoderDecoderAdapterTest obj's underlying member method code with example usage: obj.test_generation() without return types