This PR 34 unfortunately broke the star import by forgetting to add commas between the class names.
However, it’s already fixed in the nightly binaries so you could update if you need to use this way of importing the classes.
Note that importing or using the classes directly e.g. via:
from torch.utils.data import BatchSampler

would still work.