code: def sudo_remove_dirtree(dir_name):
      """Removes directory tree as a superuser.
  
      Args:
        dir_name: name of the directory to remove.
  
      This function is necessary to cleanup directories created from inside a
      Docker, since they usually written as a root, thus have to be removed as a
      root.
      """
      try:
          subprocess.check_output(["sudo", "rm", "-rf", dir_name])
      except subprocess.CalledProcessError as e:
          raise WorkerError(
              "Can" "t remove directory {0}".format(dir_name), e
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import int
  import argparse
  import json
  import logging
  import os
  import random
  import shutil
  import subprocess
  import time
  import uuid
  from six import iteritems
  import eval_lib
  from cleverhans.utils import shell_call
label_desc: Use image node_id 2 for calling a global function with example usage: sudo_remove_dirtree(dir_name) without return types