code: def _test_large_batched_generation(in_queue, out_queue, timeout):
      error = None
      try:
          _ = in_queue.get(timeout=timeout)
  
          set_seed(0)
          processor = WhisperProcessor.from_pretrained(
              "openai/whisper-large"
          )
          model = TFWhisperForConditionalGeneration.from_pretrained(
              "openai/whisper-large"
          )
  
          input_speech = _load_datasamples(4)
          input_features = processor.feature_extractor(
              raw_speech=input_speech, return_tensors="tf"
          ).input_features
          generated_ids_1 = model.generate(
              input_features[0:2], max_length=20
          )
          generated_ids_2 = model.generate(
              input_features[2:4], max_length=20
          )
          generated_ids = np.concatenate(
              [generated_ids_1, generated_ids_2]
          )
  
          # fmt: off
          EXPECTED_LOGITS = tf.convert_to_tensor(
              [
                  [50258, 50358, 50363, 2221, 13, 2326, 388, 391, 307, 264, 50244, 295, 264, 2808, 5359, 293, 321, 366, 5404, 281],
                  [50258, 50358, 50363, 6966, 307, 2221, 13, 2326, 388, 391, 311, 9060, 1570, 1880, 813, 702, 1871, 13, 50257, 50257],
                  [50258, 50358, 50363, 634, 5112, 505, 300, 412, 341, 42729, 3196, 295, 264, 1064, 11, 365, 5272, 293, 12904, 9256],
                  [50258, 50358, 50363, 634, 575, 12525, 22618, 1968, 6144, 35617, 20084, 1756, 311, 589, 307, 534, 10281, 934, 439, 11]
              ]
          )
          # fmt: on
  
          unittest.TestCase().assertTrue(
              np.allclose(generated_ids, EXPECTED_LOGITS)
          )
  
          # fmt: off
          EXPECTED_TRANSCRIPT = [
              ' Mr. Quilter is the apostle of the middle classes and we are glad to',
              " Nor is Mr. Quilter's manner less interesting than his matter.",
              " He tells us that at this festive season of the year, with Christmas and roast beef",
              " He has grave doubts whether Sir Frederick Layton's work is really Greek after all,"
          ]
          # fmt: on
  
          transcript = processor.batch_decode(
              generated_ids, skip_special_tokens=True
          )
          unittest.TestCase().assertListEqual(
              transcript, EXPECTED_TRANSCRIPT
          )
      except Exception:
          error = f"{traceback.format_exc()}"
  
      results = {"error": error}
      out_queue.put(results, timeout=timeout)
      out_queue.join()
  
imports: import inspect
  import os
  import tempfile
  import traceback
  import unittest
  import numpy
  from transformers import WhisperConfig, WhisperFeatureExtractor, WhisperProcessor
  from transformers.testing_utils import is_tf_available, require_tf, require_tokenizers, run_test_in_subprocess, slow
  from transformers.utils import cached_property
  from transformers.utils.import_utils import is_datasets_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, floats_tensor, ids_tensor
label_desc: Use image node_id 6 for calling a global function with example usage: _test_large_batched_generation(in_queue, out_queue, timeout) without return types