code: def test_slurm_invalid_parse() -> None:
      with pytest.raises(slurm.SlurmParseException):
          with with_slurm_job_nodelist("compute-b2[1-,4]") as env:
              print(env.hostnames)
      with pytest.raises(slurm.SlurmParseException):
          with with_slurm_job_nodelist(
              "compute-b2[1,2,compute-b3]"
          ) as env:
              print(env.hostnames)
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import submitit
  from ..None import helpers
  from ..core import job_environment, submission, test_core, utils
  from ..core.core import Job
  from .None import slurm
label_desc: Use image node_id 29 for calling a global function with example usage: test_slurm_invalid_parse() without return types