code: def test_90_generation_from_long_input(self):
      model_inputs = self.tokenizer(self.src_text, return_tensors="tf")
      generated_ids = self.model.generate(
          model_inputs.input_ids,
          attention_mask=model_inputs.attention_mask,
          num_beams=2,
          use_cache=True,
      )
      generated_words = self.tokenizer.batch_decode(
          generated_ids.numpy(), skip_special_tokens=True
      )[0]
      assert generated_words in (
          "i don't know. i just feel like i'm going to throw up. it's not fun.",
          "i'm not sure. i just feel like i've been feeling like i have to be in a certain place",
          "i'm not sure. i just feel like i've been in a bad situation.",
      )
  
imports: from __future__ import annotations
  import unittest
  from transformers import BlenderbotSmallConfig, BlenderbotSmallTokenizer, is_tf_available
  from transformers.testing_utils import require_tf, require_tokenizers, slow
  from transformers.utils import cached_property
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 3 for calling the TFBlenderbot90MIntegrationTests obj's underlying member method code with example usage: obj.test_90_generation_from_long_input() without return types