code: def test_dirty(self, git_repo_fn):
      git_repo = git_repo_fn()
      assert not git_repo.dirty
      open("foo.txt", "wb").close()
      git_repo.repo.index.add(["foo.txt"])
      assert git_repo.dirty
  
file_path: wandb/tests/pytest_tests/unit_tests/test_lib/test_git.py
imports: from typing import Generator, Optional
  import git
  import pytest
  from wandb.sdk.lib.gitlib import GitRepo
label_desc: Use image node_id 2 for calling the TestGitRepo obj's underlying member method code with example usage: obj.test_dirty(git_repo_fn) without return types