code: def print_summary(num_actions, failed, duration):
      
      num_failed = len(failed)
      print("""
  Summary:
  {num_total} actions were in the queue.
  {num_failed} actions failed to execute.
  
  This run took: {elapsed_time:8.3f} seconds.
      """.format(
          num_total=num_actions, num_failed=num_failed, elapsed_time=duration))
docs: Print a small summary of the executed plan.
  
      Args:
          num_actions (int): Total size of the executed plan.
          failed (:obj:`list` of :obj:`actions.Step`): List of failed actions.
          duration: Time we spent executing the plan.