code: def test_deleted(tmp_dir, scm, dvc, delete_data):
      tmp_dir.dvc_gen("file", "text", commit="add file")
      (tmp_dir / "file.dvc").unlink()
      if delete_data:
          (tmp_dir / "file").unlink()
  
      assert dvc.diff() == {
          "added": [],
          "deleted": [{"path": "file", "hash": digest("text")}],
          "modified": [],
          "not in cache": [],
          "renamed": [],
      }
  
imports: import hashlib
  import os
  import pytest
  from funcy import first
  from dvc.exceptions import DvcException
  from dvc.utils.fs import remove
label_desc: Use image node_id 7 for calling a global function with example usage: test_deleted(tmp_dir, scm, dvc, delete_data) without return types