code: def get_device(use_cuda):
      """Determine and return the appropriate device for computation."""
      use_cuda = use_cuda and torch.cuda.is_available()
      print("\n" + "=" * 30)
      print("USE_CUDA SET TO: {}".format(use_cuda))
      print("CUDA AVAILABLE?: {}".format(torch.cuda.is_available()))
      print("=" * 30 + "\n")
      return torch.device("cuda" if use_cuda else "cpu")
  
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 2 for calling a global function with example usage: get_device(use_cuda) and returns: torch