Create function similar to torch.Tensor.to() .
torch.Tensor.to()
Tracks.to()
dgs.utils.track.Tracks.setdefault
dgs.utils.track.Tracks.update