code: def cleanup(context):
      
      for name in 'work_dir', 'artifact_dir', 'task_log_dir':
          path = context.config[name]
          if os.path.exists(path):
              log.debug("rm({})".format(path))
              rm(path)
          makedirs(path)
docs: Clean up the work_dir and artifact_dir between task runs, then recreate.
  
      Args:
          context (scriptworker.context.Context): the scriptworker context.