code: def test_cli_init(create_test_dir, capsys):
      # Check if the json and other files have been created by the init
      assert Path(".wgit/sha1_store").is_dir()
      assert Path(".wgit/.gitignore").is_file()
      assert Path(".wgit/.git").exists()
  
file_path: fairscale/tests/experimental/wgit/test_cli.py
imports: import json
  import os
  from pathlib import Path
  import shutil
  import pytest
  import torch
  from torch import nn
  import fairscale.experimental.wgit.cli
  from fairscale.experimental.wgit.sha1_store import SHA1_Store
label_desc: Use image node_id 2 for calling a global function with example usage: test_cli_init(create_test_dir, capsys) without return types