code: def replicate_directory_tree(input_dir, output_dir):
      
      def transplant_dir(target, dirname):
          x = dirname.replace(input_dir, target)
          if not os.path.exists(x):
              LOGGER.info('Creating: {}'.format(x))
              os.makedirs(x)
  
      dir_visitor(
          input_dir,
          functools.partial(transplant_dir, output_dir)
      )
docs: _replicate_directory_tree_
  
      clone dir structure under input_dir into output dir
      All subdirs beneath input_dir will be created under
      output_dir
      :param input_dir: path to dir tree to be cloned
      :param output_dir: path to new dir where dir structure will
         be created