code: def test_api_checkout(repo):
      try:
          repo.checkout("sha1")
      except NotImplementedError:
          assert True
  
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 9 for calling a global function with example usage: test_api_checkout(repo) without return types