code: def test_diff_deleted(M, tmp_dir, scm, dvc):
      tmp_dir.gen("params.yaml", "foo: bar")
      dvc.run(
          cmd="echo params.yaml", params=["foo"], name="echo-params"
      )
      scm.add(["params.yaml", "Dvcfile"])
      scm.commit("bar")
  
      (tmp_dir / "params.yaml").unlink()
  
      assert dvc.params.diff() == {
          "diff": {"params.yaml": {"foo": {"old": "bar", "new": None}}},
          "errors": {
              "workspace": {
                  "params.yaml": M.instance_of(FileNotFoundError)
              }
          },
      }
  
file_path: dvc/tests/func/params/test_diff.py
imports: from os.path import join
  import pytest
  from dvc.utils import relpath
label_desc: Use image node_id 6 for calling a global function with example usage: test_diff_deleted(M, tmp_dir, scm, dvc) without return types