code: def test_scm_context_ignore(tmp_dir, scm, dvc):
      with dvc.scm_context as context:
          context.ignore(tmp_dir / "foo")
          assert context.files_to_track == {scm.GITIGNORE}
  
      scm._reset()
      assert scm.is_ignored("foo")
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_scm_context_ignore(tmp_dir, scm, dvc) without return types