def _priority_sort(module):
    try:
        return getattr(module, '_init_priority')
    except __HOLE__:
        if inspect.isclass(module):
            return 1000
        return 2000
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/context/resource.py/_priority_sort