code: def test_snapshot_excludes(tmp_path: Path) -> None:
      exclude = ["submitit/test_*"]
      with helpers.RsyncSnapshot(
          snapshot_dir=tmp_path, exclude=exclude
      ):
          assert (tmp_path / "submitit/helpers.py").exists()
          assert not (tmp_path / "submitit/test_helpers.py").exists()
  
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 5 for calling a global function with example usage: test_snapshot_excludes(tmp_path) without return types