code: def test_cli_commit(capsys):
      commit_msg = "epoch_1"
      cli.main(["commit", "-m", f"{commit_msg}"])
      with open(".wgit/.git/logs/HEAD") as f:
          line = f.readlines()
      assert line[0].rstrip().split()[-1] == commit_msg
  
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 4 for calling a global function with example usage: test_cli_commit(capsys) without return types