def get_main(lua, script):
    main = _get_entrypoint(lua, script)
    _check_main(main)
    return main, lua.eval("_G")
Get "main" function and its global environment from a ``script``.
dataset/ETHPy150Open scrapinghub/splash/splash/lua.py/get_main