code: def test_targets_single_file(tmp_dir, scm, dvc):
      setup_targets_test(tmp_dir)
  
      assert dvc.diff(targets=["file"]) == {
          "added": [],
          "deleted": [],
          "modified": [
              {
                  "path": "file",
                  "hash": {
                      "old": digest("first"),
                      "new": digest("second"),
                  },
              }
          ],
          "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 19 for calling a global function with example usage: test_targets_single_file(tmp_dir, scm, dvc) without return types