code: def test_api_init(capsys, repo):
      repo = Repo(Path.cwd(), init=True)
      assert Path(".wgit/sha1_store").is_dir()
      assert Path(".wgit/.gitignore").is_file()
      assert Path(".wgit/.git").exists()
      assert Path(".wgit/.gitignore").exists()
  
file_path: fairscale/tests/experimental/wgit/test_api.py
imports: import json
  import os
  from pathlib import Path
  import random
  import shutil
  import pytest
  import torch
  from torch import nn
  from fairscale.experimental.wgit.repo import Repo, RepoStatus
label_desc: Use image node_id 4 for calling a global function with example usage: test_api_init(capsys, repo) without return types