@wrapt.decorator<EOL>def _inference_tip_cached(func, instance, args, kwargs, _cache={}):
node = args[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>return iter(_cache[func, node])<EOL><DEDENT>except KeyError:<EOL><INDENT>result = func(*args, **kwargs)<EOL>original, copy = itertools.tee(result)<EOL>_cache[func, node] = list(copy)<EOL>return original<EOL><DEDENT>
Cache decorator used for inference tips