code: def test_remove_links(tmp_dir, dvc):
      tmp_dir.dvc_gen({"foo": "foo_content", "bar": "bar_content"})
  
      assert len(dvc.state.links) == 2
  
      dvc.state.remove_links(["foo", "bar"], dvc.fs)
  
      assert len(dvc.state.links) == 0
  
file_path: dvc/tests/func/test_state.py
imports: import os
  from dvc_data.hashfile.hash import file_md5
  from dvc_data.hashfile.hash_info import HashInfo
  from dvc_data.hashfile.state import State
label_desc: Use image node_id 4 for calling a global function with example usage: test_remove_links(tmp_dir, dvc) without return types