class_docstr: Creates paths related to the slurm job and its submission
class_docstr_tok: ["Creates","paths","related","to","the","slurm","job","and","its","submission"]
code: def __init__(
      self,
      folder: tp.Union[Path, str],
      job_id: tp.Optional[str] = None,
      task_id: tp.Optional[int] = None,
  ) -> None:
      self._folder = Path(folder).expanduser().absolute()
      self.job_id = job_id
      self.task_id = task_id or 0
  
imports: import contextlib
  import io
  import itertools
  import os
  import pickle
  import select
  import shutil
  import subprocess
  import sys
  import tarfile
  import typing
  from pathlib import Path
  import cloudpickle
label_desc: Use image node_id 1 to create a new JobPaths object  with example: obj = JobPaths(folder, job_id, task_id)