code: def taco2wg(spec, z):
      spec = spec.permute(0, 3, 2, 1).contiguous()
      return spec.view(spec.size(0), spec.size(1), -1), z.view(
          z.size(0), z.size(1), -1
      )
  
file_path: NeMo/tests/collections/tts/test_waveglow.py
imports: import os
  import tempfile
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.tts.models import WaveGlowModel
  from nemo.core.classes import typecheck
label_desc: Use image node_id 2 for calling a global function with example usage: taco2wg(spec, z) and returns: spec,  z