code: def test_scm_context_try_ignore_remove_non_existing_entry(
      tmp_dir, dvc, scm
  ):
      with dvc.scm_context as context:
          context.ignore_remove(tmp_dir / "foo")
          assert not context.files_to_track
      scm._reset()
      assert not scm.is_ignored("foo")
  
label_desc: Use image node_id 5 for calling a global function with example usage: test_scm_context_try_ignore_remove_non_existing_entry(tmp_dir, dvc, scm) without return types