code: def test_check_depends(tmpdir):
      def touch(fname):
          with open(fname, "a"):
              os.utime(fname, None)
  
      dependencies = [tmpdir.join(str(i)).strpath for i in range(3)]
      targets = [tmpdir.join(str(i)).strpath for i in range(3, 6)]
  
      # Targets newer than dependencies
      for dep in dependencies:
          touch(dep)
      time.sleep(1)
      for tgt in targets:
          touch(tgt)
      assert check_depends(targets, dependencies)
  
      # Targets older than newest dependency
      time.sleep(1)
      touch(dependencies[0])
      assert not check_depends(targets, dependencies)
  
      # Missing dependency
      os.unlink(dependencies[0])
      try:
          check_depends(targets, dependencies)
      except OSError:
          pass
      else:
          assert False, "Should raise OSError on missing dependency"
  
imports: import os
  import time
  from pathlib import Path
  from unittest import mock, SkipTest
  import pytest
  from ...testing import TempFATFS
  from ...utils.filemanip import save_json, load_json, fname_presuffix, fnames_presuffix, hash_rename, check_forhash, _parse_mount_table, _cifs_table, on_cifs, copyfile, copyfiles, ensure_list, simplify_list, check_depends, split_filename, get_related_files, indirectory, loadpkl, loadcrash, savepkl, path_resolve, write_rst_list, emptydirs
label_desc: Use image node_id 19 for calling a global function with example usage: test_check_depends(tmpdir) without return types