def METHOD_NAME(self, pyfunc, flags=enable_pyobj_flags):
    cres = compile_isolated(pyfunc, [types.double], flags=flags)
    cfunc = cres.entry_point
    for x in [-1.2, -1, 0, 0.1, 3.14]:
        self.assertPreciseEqual(pyfunc(x), cfunc(x))