code: def test_abs_target(tmp_dir, scm, dvc):
      tmp_dir.dvc_gen("file", "text")
  
      assert dvc.diff(targets=(tmp_dir / "file").fs_path) == {
          "added": [{"path": "file", "hash": digest("text")}],
          "deleted": [],
          "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 16 for calling a global function with example usage: test_abs_target(tmp_dir, scm, dvc) without return types