code: def np_array(tensor):
      """Convert a Pytorch tensor to a Numpy array."""
      tensor = tensor.squeeze(0)
      tensor = tensor.detach().cpu()
      return tensor.numpy()
  
file_path: speechbrain/recipes/CVSS/S2ST/extract_code.py
imports: import logging
  import json
  import pathlib
  import joblib
  import torch
  import torchaudio
  import numpy
  from tqdm import tqdm
  import speechbrain
  from speechbrain.dataio.dataio import load_pkl, save_pkl
  from speechbrain.lobes.models.huggingface_transformers.wav2vec2 import Wav2Vec2
  from huggingface_hub import hf_hub_download
label_desc: Use image node_id 3 for calling a global function with example usage: np_array(tensor) and returns: tensor