code: def test_early_stop_processor(self):
      input_ids = None
      eos_token_id = 2
      min_eos_p = 0.1  ## some small float
  
      scores = self._get_uniform_logits(2, 4)
      scores[0][eos_token_id] = -6  ## less than log(min_eos_p)
  
      esp = BarkEosPrioritizerLogitsProcessor(
          eos_token_id=eos_token_id, min_eos_p=min_eos_p
      )
      actual_scores = esp(input_ids, scores)
      expected_scores_list = [
          scores[0].tolist(),
          [float("-inf"), float("-inf"), scores[0][0], float("-inf")],
      ]
      self.assertListEqual(actual_scores.tolist(), expected_scores_list)
  
imports: import unittest
  from typing import List, Union
  from parameterized import parameterized
  from transformers import is_torch_available
  from transformers.testing_utils import require_torch, torch_device
  from ..test_modeling_common import ids_tensor
label_desc: Use image node_id 25 for calling the LogitsProcessorTest obj's underlying member method code with example usage: obj.test_early_stop_processor() without return types