def singularity32(function):
    """Decorator to set the global singularity version"""
    def wrapper(*args, **kwargs):
        hpccm.config.g_ctype = container_type.SINGULARITY
        hpccm.config.g_singularity_version = Version('3.2')
        return function(*args, **kwargs)

    return wrapper
Decorator to set the global singularity version
test/helpers.py