code: def test_slurmpaths_id_independent() -> None:
      path = "test/truc/machin_%j/name"
      output = utils.JobPaths.get_first_id_independent_folder(path)
      assert output.name == "truc"
  
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 6 for calling a global function with example usage: test_slurmpaths_id_independent() without return types