code: def test_tear_down(repo_data):
      # clean up: delete the .wgit directory created during this Test
      # Making sure the current directory is ./temp_wgit_testing before removing test dir
      if (
          repo_data["test_path"].parent.stem == "temp_wgit_testing"
      ) and (repo_data["test_path"].stem == ".wgit"):
          shutil.rmtree(repo_data["test_path"].parent)
      else:
          raise Exception("Exception in testing directory tear down!")
  
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 6 for calling a global function with example usage: test_tear_down(repo_data) without return types