code: def test_setup(repo_data):
      curr_dir = Path.cwd()
      test_dir = curr_dir.joinpath(repo_data["test_path"])
  
      # Initialize the repo for the first time
      pygit_repo = PyGit(
          test_dir, gitignore=["test_file1", "test_file2"]
      )
  
      # create sample files
      test_dir.joinpath("test_file_1.pt").touch()
      test_dir.joinpath("test_file_2.pt").touch()
  
      assert test_dir.stem == str(pygit_repo.path.parent.stem)
  
file_path: fairscale/tests/experimental/wgit/test_pygit.py
imports: from pathlib import Path
  import shutil
  import pytest
  from fairscale.experimental.wgit.pygit import PyGit
label_desc: Use image node_id 3 for calling a global function with example usage: test_setup(repo_data) without return types