Python API
has_slurm()
Check if the program was started using srun (SLURM).
This is determined by checking if the SLURM_PROCID environment variable is set.