class_docstr: Helper for mocking subprocess calls
code: def set_job_state(
      self, job_id: str, state: str, array: int = 0
  ) -> None:
      self.job_sacct[job_id] = self._sacct(state, job_id, array)
      self.last_job = job_id
  
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 6 for calling the MockedSubprocess obj's underlying member method code with example usage: obj.set_job_state(job_id, state, array) without return types