code: def test_api_log(capsys, repo):
      repo.log("testfile.pt")
      captured = capsys.readouterr()
      assert captured.out == "wgit log of the file: testfile.pt\n"
      assert captured.err == ""
  
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 8 for calling a global function with example usage: test_api_log(capsys, repo) without return types