code: def check_labels_out_of_vocab(self, config, input_values, *args):
      model = TFHubertForCTC(config)
      input_lengths = tf.constant(
          [input_values.shape[-1] // i for i in [4, 2, 1]]
      )
      max_length_labels = model.hubert._get_feat_extract_output_lengths(
          input_lengths
      )
      labels = ids_tensor(
          (input_values.shape[0], min(max_length_labels) - 1),
          model.config.vocab_size + 100,
      )
      with pytest.raises(ValueError):
          model(input_values, labels=labels)
  
imports: import copy
  import inspect
  import math
  import unittest
  import numpy
  import pytest
  from transformers import is_tf_available
  from transformers.testing_utils import require_soundfile, require_tf, slow
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, ids_tensor
label_desc: Use image node_id 7 for calling the TFHubertModelTester obj's underlying member method code with example usage: obj.check_labels_out_of_vocab(config, input_values) without return types