code: def translate_src_text(self, **tokenizer_kwargs):
      model_inputs = self.tokenizer(
          self.src_text,
          **tokenizer_kwargs,
          padding=True,
          return_tensors="tf",
      )
      generated_ids = self.model.generate(
          model_inputs.input_ids,
          attention_mask=model_inputs.attention_mask,
          num_beams=2,
          max_length=128,
      )
      generated_words = self.tokenizer.batch_decode(
          generated_ids.numpy(), skip_special_tokens=True
      )
      return generated_words
  
imports: from __future__ import annotations
  import unittest
  import warnings
  from transformers import AutoTokenizer, MarianConfig, MarianTokenizer, TranslationPipeline, is_tf_available
  from transformers.testing_utils import require_sentencepiece, 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 6 for calling the AbstractMarianIntegrationTest obj's underlying member method code with example usage: obj.translate_src_text() and returns: generated_words