code: def test_ignore_remove(scm_context):
      scm_context.ignore_remove("foo")
      scm_context.scm.ignore_remove.assert_called_once_with("foo")
      assert scm_context.files_to_track == {".gitignore"}
  
file_path: dvc/tests/unit/repo/test_scm_context.py
imports: import re
  import pytest
  from dvc.repo.scm_context import SCMContext
  from dvc.scm import Git, NoSCM
label_desc: Use image node_id 6 for calling a global function with example usage: test_ignore_remove(scm_context) without return types