code: def SparseTensor(
      feats, coordinates, batch, device=torch.device("cpu")
  ):
      if batch.dim() == 1:
          batch = batch.unsqueeze(-1)
      coords = torch.cat([coordinates.int(), batch.int()], -1)
      return TS.SparseTensor(feats, coords).to(device)
  
file_path: torch-points3d/torch_points3d/modules/SparseConv3d/nn/torchsparse.py
imports: import torch
  import torchsparse
  import torchsparse.nn
label_desc: Use image node_id 2 for calling a global function with example usage: SparseTensor(feats, coordinates, batch, device) and returns: TS