code: def average_vectors(vec_list):
      assert len(vec_list) > 0
      return torch.cat([emb[None] for emb in vec_list], dim=0).mean(0)
  
file_path: lightwood/lightwood/helpers/torch.py
imports: import functools
  import torch
  from torch.nn.functional import pad
  from lightwood.helpers.device import get_devices
label_desc: Use image node_id 2 for calling a global function with example usage: average_vectors(vec_list) and returns: torch