code: def execute_cleanup_tasks(ctx, cleanup_tasks, dry_run=False):
      
      # pylint: disable=redefined-outer-name
      executor = Executor(cleanup_tasks, ctx.config)
      for cleanup_task in cleanup_tasks.tasks:
          print("CLEANUP TASK: %s" % cleanup_task)
          executor.execute((cleanup_task, dict(dry_run=dry_run)))
docs: Execute several cleanup tasks as part of the cleanup.
  
      REQUIRES: ``clean(ctx, dry_run=False)`` signature in cleanup tasks.
  
      :param ctx:             Context object for the tasks.
      :param cleanup_tasks:   Collection of cleanup tasks (as Collection).
      :param dry_run:         Indicates dry-run mode (bool)