def set_num_workers(num_workers):
    """Sets the number of workers that are used in the torch DataLoaders.

    Args:
        num_workers (int): The number of workers that are used for data loading.
        """
    global NUM_WORKERS
    NUM_WORKERS = num_workers
