code: def test_targets_single_file_in_dir(tmp_dir, scm, dvc):
      setup_targets_test(tmp_dir)
  
      assert dvc.diff(targets=[os.path.join("dir", "1")]) == {
          "added": [
              {"path": os.path.join("dir", "1"), "hash": digest("1")}
          ],
          "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 21 for calling a global function with example usage: test_targets_single_file_in_dir(tmp_dir, scm, dvc) without return types