code: def test_job_environment_works(monkeypatch):
      monkeypatch.setenv("_TEST_CLUSTER_", "slurm")
      env = plugins.get_job_environment()
      assert env.cluster == "slurm"
      assert type(env).__name__ == "SlurmJobEnvironment"
  
      env2 = JobEnvironment()
      assert env2.cluster == "slurm"
      assert type(env2).__name__ == "SlurmJobEnvironment"
  
imports: import logging
  import re
  import typing
  from pathlib import Path
  import pkg_resources
  import pytest
  from .None import core, plugins
  from .job_environment import JobEnvironment
label_desc: Use image node_id 5 for calling a global function with example usage: test_job_environment_works(monkeypatch) without return types