code: def _test_large_logits_librispeech(in_queue, out_queue, timeout):
      error = None
      try:
          _ = in_queue.get(timeout=timeout)
  
          set_seed(0)
  
          model = TFWhisperModel.from_pretrained("openai/whisper-large")
  
          input_speech = _load_datasamples(1)
  
          processor = WhisperProcessor.from_pretrained(
              "openai/whisper-large"
          )
          processed_inputs = processor(
              audio=input_speech,
              text="This part of the speech",
              return_tensors="tf",
          )
          input_features = processed_inputs.input_features
          labels = processed_inputs.labels
  
          logits = model(
              input_features,
              decoder_input_ids=labels,
              output_hidden_states=False,
              output_attentions=False,
              use_cache=False,
          )
  
          logits = logits.last_hidden_state @ tf.transpose(
              model.model.decoder.embed_tokens.weights[0]
          )
  
          # fmt: off
          EXPECTED_LOGITS = tf.convert_to_tensor(
              [
                  2.1382, 0.9381, 4.4671, 3.5589, 2.4022, 3.8576, -0.6521, 2.5472,
                  1.8301, 1.9957, 2.3432, 1.4678, 0.5459, 2.2597, 1.5179, 2.5357,
                  1.1624, 0.6194, 1.0757, 1.8259, 2.4076, 1.6601, 2.3503, 1.3376,
                  1.9891, 1.8635, 3.8931, 5.3699, 4.4772, 3.9184
              ]
          )
          # fmt: on
  
          unittest.TestCase().assertTrue(
              np.allclose(logits[0, 0, :30], EXPECTED_LOGITS, atol=1e-4)
          )
      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 3 for calling a global function with example usage: _test_large_logits_librispeech(in_queue, out_queue, timeout) without return types