code: def test_env(env: JobEnvironment) -> None:
      assert isinstance(env, JobEnvironment)
      # We are not inside a submitit job
      assert not env.activated()
      assert (
          type(env)._requeue is not JobEnvironment._requeue
      ), "_requeue need to be overridden"
  
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 1 for calling a global function with example usage: test_env(env) without return types