code: def rmtree(path):
      """Remove a directory and recursively all contents inside. Might fail if used on a file path."""
      if io_mode == BackendMode.DEFAULT:
          return shutil.rmtree(path)
      elif io_mode == BackendMode.TF:
          return gfile.rmtree(path)
      else:
          raise ValueError("Unknown IO Backend Mode.")
  
imports: import contextlib
  import glob
  import importlib
  import os
  import shutil
  from enum import Enum
  from absl import logging
  from .None import errors
label_desc: Use image node_id 12 for calling a global function with example usage: rmtree(path) and returns: shutil, gfile