code: def normalize_wav(tensor: torch.Tensor) -> torch.Tensor:
      if tensor.dtype == torch.float32:
          pass
      elif tensor.dtype == torch.int32:
          tensor = tensor.to(torch.float32)
          tensor[tensor > 0] /= 2147483647.0
          tensor[tensor < 0] /= 2147483648.0
      elif tensor.dtype == torch.int16:
          tensor = tensor.to(torch.float32)
          tensor[tensor > 0] /= 32767.0
          tensor[tensor < 0] /= 32768.0
      elif tensor.dtype == torch.uint8:
          tensor = tensor.to(torch.float32) - 128
          tensor[tensor > 0] /= 127.0
          tensor[tensor < 0] /= 128.0
      return tensor
  
imports: from typing import Optional
  import scipy.io.wavfile
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: normalize_wav(tensor) and returns: tensor