def compile_isolated(func, args, return_type=None, flags=DEFAULT_FLAGS, locals={}):
 from .targets.registry import cpu_target
 typingctx = typing.Context()
 targetctx = cpu.CPUContext(typingctx)
 with cpu_target.nested_context(typingctx, targetctx):
  return compile_extra(typingctx, targetctx, func, args, return_type, flags, locals)

def compile_isolated ( func , args , return_type = None , flags = DEFAULT_FLAGS , locals = { } ) : from . targets . registry import cpu_target typingctx = typing . Context ( ) targetctx = cpu . CPUContext ( typingctx ) with cpu_target . nested_context ( typingctx , targetctx ) : return compile_extra ( typingctx , targetctx , func , args , return_type , flags , locals )
compile the function in an isolated environment .