code: def __init__(
      self,
      folder: tp.Union[Path, str],
      job_id: str,
      tasks: tp.Sequence[int] = (0,),
      process: tp.Optional["subprocess.Popen['bytes']"] = None,
  ) -> None:
      super().__init__(folder, job_id, tasks)
      self._cancel_at_deletion = False
      # downcast sub-jobs to get proper typing
      self._sub_jobs: tp.Sequence["LocalJob[R]"] = self._sub_jobs
      # set process (to self and subjobs)
      self._process = process
      for sjob in self._sub_jobs:
          sjob._process = process
  
imports: import os
  import shlex
  import signal
  import subprocess
  import sys
  import time
  import typing
  from pathlib import Path
  from ..core import core, job_environment, logger, utils
  from ..core.core import R
label_desc: Use image node_id 1 to create a new LocalJob object from inherited base classes: core.Job with example: obj = LocalJob(folder, job_id, tasks, process)