code: def torch_cat(tensors, dim=0, out=None):
      is_cuda = any(t.is_cuda for t in tensors)
      if is_cuda:
          return CUDALongTensor.cat(tensors, dim=dim, out=out)
      return torch.cat(tensors, dim=dim, out=out)
  
file_path: FATE/python/fate/arch/protocol/mpc/common/util.py
imports: import functools
  import numpy
  import torch
  from fate.arch.protocol.mpc.cuda import CUDALongTensor
label_desc: Use image node_id 3 for calling a global function with example usage: torch_cat(tensors, dim, out) and returns: torch, CUDALongTensor