code: def test_jobpaths(tmp_path: Path) -> None:
      assert (
          utils.JobPaths(tmp_path, "123").stdout
          == tmp_path / "123_0_log.out"
      )
      assert (
          utils.JobPaths(tmp_path, "123", 1).stdout
          == tmp_path / "123_1_log.out"
      )
      assert (
          utils.JobPaths(tmp_path / "array-%A-index-%a", "456_3").stdout
          == tmp_path / "array-456-index-3" / "456_3_0_log.out"
      )
  
file_path: submitit/submitit/core/test_utils.py
imports: import os
  import shutil
  import sys
  from pathlib import Path
  from typing import Optional
  import pytest
  from .None import utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_jobpaths(tmp_path) without return types