code: def _stack_arrs(arrs):
      if isinstance(arrs[0], torch.Tensor):
          return torch.stack(arrs, 0)
      else:
          return _stack_arrs([torch.as_tensor(x) for x in arrs])
  
file_path: autogluon/multimodal/src/autogluon/multimodal/data/collator.py
imports: import math
  import warnings
  import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: _stack_arrs(arrs) and returns: torch, _stack_arrs