class_docstr: Describe the environment inside which the job is running.
  This includes job id, number of GPUs available, ...
  
  This class can only be instantiated from a running submitit job.
  
  @plugin-dev: default implementation look for information into environment variables.
  Override _env to map environment variable to each property.
docstr: Tests if we are running inside this environment.
  
  @plugin-dev: assumes that the SUBMITIT_EXECUTOR variable has been
  set to the executor name
code: def activated(self) -> bool:
      """Tests if we are running inside this environment.
  
      @plugin-dev: assumes that the SUBMITIT_EXECUTOR variable has been
      set to the executor name
      """
      return os.environ.get("SUBMITIT_EXECUTOR", "") == self.name()
  
imports: import os
  import signal
  import socket
  import sys
  import time
  import types
  import typing
  from pathlib import Path
  from .None import logger, utils
  from .utils import DelayedSubmission, JobPaths
label_desc: Use image node_id 5 for calling the JobEnvironment obj's underlying member method code with example usage: obj.activated() and returns: unknown