code: def test_spectrogram_norm_unnorm_dont_look_at_padding(
      enhancer: SpectrogramEnhancerModel, sample_input
  ):
      input_spectrograms, lengths = sample_input
      same_input_spectrograms = enhancer.unnormalize_spectrograms(
          enhancer.normalize_spectrograms(input_spectrograms, lengths),
          lengths,
      )
      for i, length in enumerate(lengths.tolist()):
          assert torch.allclose(
              input_spectrograms[i, :, :length],
              same_input_spectrograms[i, :, :length],
              atol=1e-5,
          )
  
file_path: NeMo/tests/collections/tts/test_spectrogram_enhancer.py
imports: import pytest
  import torch
  from einops import rearrange
  from omegaconf import DictConfig
  from nemo.collections.tts.models import SpectrogramEnhancerModel
  from nemo.collections.tts.parts.utils.helpers import mask_sequence_tensor
label_desc: Use image node_id 8 for calling a global function with example usage: test_spectrogram_norm_unnorm_dont_look_at_padding(enhancer, sample_input) without return types