code: def _unnormalize_waveform(
      waveform: torch.Tensor, bits: int
  ) -> torch.Tensor:
      r"""Transform waveform [-1, 1] to label [0, 2 ** bits - 1]"""
      waveform = torch.clamp(waveform, -1, 1)
      waveform = (waveform + 1.0) * (2**bits - 1) / 2
      return torch.clamp(waveform, 0, 2**bits - 1).int()
  
file_path: audio/src/torchaudio/pipelines/_tts/utils.py
imports: import logging
  import os
  import torch
  from torchaudio._internal import download_url_to_file, module_utils
label_desc: Use image node_id 5 for calling a global function with example usage: _unnormalize_waveform(waveform, bits) and returns: torch