code: def with_slurm_job_nodelist(
      node_list: str,
  ) -> tp.Iterator[slurm.SlurmJobEnvironment]:
      os.environ["SLURM_JOB_ID"] = "1"
      os.environ["SLURM_JOB_NODELIST"] = node_list
      yield slurm.SlurmJobEnvironment()
      del os.environ["SLURM_JOB_NODELIST"]
      del os.environ["SLURM_JOB_ID"]
  
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 26 for calling a global function with example usage: with_slurm_job_nodelist(node_list) without return types