Collate a batch of tensors into a single one.
Will use torch.cat() if the first dimension has a shape of one, otherwise torch.stack()
collate_tensors()
dgs.utils.state.collate_states
dgs.utils.state.collate_tvt_tensors