code: def test_job_use_snapshot_modules(executor, tmp_path: Path) -> None:
      with helpers.RsyncSnapshot(snapshot_dir=tmp_path):
  
          def submitit_file() -> Path:
              # pylint: disable=import-outside-toplevel
              import submitit
  
              return Path(submitit.__file__)
  
          job = executor.submit(submitit_file)
      # Here we load the normal submitit
      assert submitit_file() == Path(__file__).parent / "__init__.py"
      # In the job we should import submitit from the snapshot dir
      assert job.result() == tmp_path / "submitit/__init__.py"
  
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 7 for calling a global function with example usage: test_job_use_snapshot_modules(executor, tmp_path) and returns: Path