def compile_function(name, code, globs):
    co = compile(code.rstrip(), "<string>", "single")
    ns = {}
    eval(co, globs, ns)
    return ns[name]
Ensure the given value is formatted as an URL.
dataset/ETHPy150Open numba/numba/numba/tests/support.py/compile_function--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/modules/validations.py/is_url