code: def test_snapshot(tmp_path: Path) -> None:
      cwd = Path.cwd()
      with helpers.RsyncSnapshot(tmp_path):
          assert Path.cwd() == tmp_path
          assert (tmp_path / "submitit/test_helpers.py").exists()
      assert Path.cwd() == cwd
  
imports: import os
  import time
  import typing
  from pathlib import Path
  import pytest
  from .None import helpers
  from .core import core, utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_snapshot(tmp_path) without return types