code: def target_outdated(target, deps):
      """Determine whether a target is out of date.
  
      target_outdated(target,deps) -> 1/0
  
      deps: list of filenames which MUST exist.
      target: single filename which may or may not exist.
  
      If target doesn't exist or is older than any file listed in deps, return
      true, otherwise return false.
      """
      try:
          target_time = os.path.getmtime(target)
      except os.error:
          return 1
      for dep in deps:
          dep_time = os.path.getmtime(dep)
          if dep_time > target_time:
              # print "For target",target,"Dep failed:",dep # dbg
              # print "times (dep,tar):",dep_time,target_time # dbg
              return 1
      return 0
  
imports: import os
  import sys
  import errno
  import shutil
  import random
  import glob
  from warnings import warn
  from hashlib import md5
  from IPython.utils.process import system
  from IPython.utils import py3compat
  from IPython.utils.decorators import undoc
label_desc: Use image node_id 18 for calling a global function with example usage: target_outdated(target, deps) and returns: int, int, int