code: def pygit_repo_wrap(repo_data):
      path = Path.cwd().joinpath(repo_data["test_path"])
      pygit_repo_wrap = PyGit(
          path, gitignore=[repo_data["file1"], repo_data["file2"]]
      )
      return pygit_repo_wrap
  
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 2 for calling a global function with example usage: pygit_repo_wrap(repo_data) and returns: pygit_repo_wrap