code: def test_summarization_fast(self):
      model = FlaxBartForConditionalGeneration.from_pretrained(
          "sshleifer/distilbart-cnn-6-6"
      )
      tokenizer = BartTokenizer.from_pretrained(
          "sshleifer/distilbart-cnn-6-6"
      )
  
      input_str = (
          "This sentence is made of three parts. Each part is important on its own. One part is about animals, the"
          " other part about planes, and the last part about housing."
      )
  
      input_ids = tokenizer(input_str, return_tensors="np").input_ids
      sequences = model.generate(
          input_ids, num_beams=2, max_length=20
      ).sequences
  
      output_str = tokenizer.batch_decode(sequences)[0]
  
      assert (
          output_str
          == "</s><s>This sentence is made of three parts. One part is about animals, the other part</s>"
      )
  
imports: import unittest
  import numpy
  import timeout_decorator
  from transformers import BartConfig, BartTokenizer, is_flax_available
  from transformers.testing_utils import require_flax, slow
  from ...generation.test_generation_flax_utils import FlaxGenerationTesterMixin
  from ...test_modeling_flax_common import FlaxModelTesterMixin, floats_tensor, ids_tensor, random_attention_mask
label_desc: Use image node_id 7 for calling the FlaxBartModelTest obj's underlying member method code with example usage: obj.test_summarization_fast() without return types