Get the escaped name of the module usable in filepaths by replacing spaces and underscores.
ImageDataset.name_safe
dgs.models.dataset.dataset.ImageDataset.name
dgs.models.dataset.dataset.ImageDataset.precision