code: def target_update(target, deps, cmd):
      """Update a target with a given command given a list of dependencies.
  
      target_update(target,deps,cmd) -> runs cmd if target is outdated.
  
      This is just a wrapper around target_outdated() which calls the given
      command if target is outdated."""
  
      if target_outdated(target, deps):
          system(cmd)
  
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 19 for calling a global function with example usage: target_update(target, deps, cmd) without return types