code: def test_normalization(self):
      input_ids = None
  
      scores = torch.tensor(
          [
              [-23.18, -29.96, -43.54, 47.77],
              [-33.58, -26.87, -32.96, 22.51],
          ],
          device=torch_device,
          dtype=torch.float,
      )
  
      logit_normalization = LogitNormalization()
      normalized_scores = logit_normalization(input_ids, scores).exp()
  
      ones = torch.ones(
          scores.shape[0], device=torch_device, dtype=torch.float
      )
      self.assertTrue(normalized_scores.sum(dim=-1).allclose(ones))
  
      self.assertTrue(
          normalized_scores.allclose(scores.softmax(dim=-1))
      )
  
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 23 for calling the LogitsProcessorTest obj's underlying member method code with example usage: obj.test_normalization() without return types