class_docstr: Helper for mocking subprocess calls
code: def job_context(self, job_id: str) -> tp.Iterator[None]:
      with utils.environment_variables(
          _USELESS_TEST_ENV_VAR_="1",
          SUBMITIT_EXECUTOR="slurm",
          SLURM_JOB_ID=str(job_id),
      ):
          yield None
  
imports: import contextlib
  import pickle
  import subprocess
  import sys
  import time
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from .None import core, submission, utils
label_desc: Use image node_id 11 for calling the MockedSubprocess obj's underlying member method code with example usage: obj.job_context(job_id) without return types