'Create a subtree in the tb deleted course'

def create_subtree_for_deletion(self, parent, category_queue):

    if (not category_queue):
        return
    node = modulestore().create_child('deleting_user', parent.version_agnostic(), category_queue[0])
    node_loc = node.location.map_into_course(parent.course_key)
    for _ in range(4):
        self.create_subtree_for_deletion(node_loc, category_queue[1:])
