code: def setup_targets_test(tmp_dir):
      tmp_dir.dvc_gen("file", "first", commit="add a file")
  
      tmp_dir.dvc_gen({"dir": {"1": "1", "2": "2"}})
      tmp_dir.dvc_gen("file", "second")
  
      tmp_dir.dvc_gen(os.path.join("dir_with", "file.txt"), "first")
  
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 17 for calling a global function with example usage: setup_targets_test(tmp_dir) without return types