code: def test_prepare_batch_not_longer_than_maxlen(self):
      for tokenizer in [
          self.default_tokenizer,
          self.default_tokenizer_fast,
      ]:
          batch = tokenizer(
              ["I am a small frog" * 1024, "I am a small frog"],
              padding=True,
              truncation=True,
              return_tensors="pt",
          )
          self.assertIsInstance(batch, BatchEncoding)
          self.assertEqual(batch.input_ids.shape, (2, 5122))
  
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 10 for calling the TestTokenizationLED obj's underlying member method code with example usage: obj.test_prepare_batch_not_longer_than_maxlen() without return types