code: def test_prepare_batch(self):
      src_text = [
          "A long paragraph for summarization.",
          "Another paragraph for summarization.",
      ]
      expected_src_tokens = [0, 250, 251, 17818, 13, 39186, 1938, 4, 2]
  
      for tokenizer in [
          self.default_tokenizer,
          self.default_tokenizer_fast,
      ]:
          batch = tokenizer(
              src_text,
              max_length=len(expected_src_tokens),
              padding=True,
              return_tensors="pt",
          )
          self.assertIsInstance(batch, BatchEncoding)
  
          self.assertEqual((2, 9), batch.input_ids.shape)
          self.assertEqual((2, 9), batch.attention_mask.shape)
          result = batch.input_ids.tolist()[0]
          self.assertListEqual(expected_src_tokens, result)
  
imports: import json
  import os
  import unittest
  from transformers import BatchEncoding, LEDTokenizer, LEDTokenizerFast
  from transformers.models.led.tokenization_led import VOCAB_FILES_NAMES
  from transformers.testing_utils import require_tokenizers, require_torch
  from transformers.utils import cached_property
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 7 for calling the TestTokenizationLED obj's underlying member method code with example usage: obj.test_prepare_batch() without return types