code: def test_all_commits(tmp_dir, scm, dvc):
      first = scm.get_rev()
      assert all_commits() == [first]
  
      tmp_dir.scm_gen("foo", "foo", "commit")
      second = scm.get_rev()
  
      assert set(all_commits()) == {first, second}
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_all_commits(tmp_dir, scm, dvc) without return types