code: def test_job_environment() -> None:
      with mocked_slurm() as mock:
          mock.set_job_state("12", "RUNNING")
          with mock.job_context("12"):
              assert job_environment.JobEnvironment().cluster == "slurm"
  
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 4 for calling a global function with example usage: test_job_environment() without return types