is_lazy_tensor function

Check for lazy tensor