get run function in libs/utils.py