@delegate_manager
    def rebuild(self):
        opts = self.model._mptt_meta

        qs = self._mptt_filter(parent=None)
        if opts.order_insertion_by:
            qs = qs.order_by(*opts.order_insertion_by)
        pks = qs.values_list('pk', flat=True)

        rebuild_helper = self._rebuild_helper
        idx = 0
        for pk in pks:
            idx += 1
            rebuild_helper(pk, 1, idx)
>>> f = import_attr('datetime:datetime.ctime')
dataset/ETHPy150Open django-mptt/django-mptt/mptt/managers.py/TreeManager.rebuild--crossover with--dataset/ETHPy150Open limodou/uliweb/test/test_common.py/test_import_attr