code: def _lsm_loop_cond(exercise_index, cashflow, option_values):
      """Condition to exit a countdown loop when the exercise date hits zero."""
      del cashflow, option_values
      return exercise_index > 0
  
file_path: tf-quant-finance/tf_quant_finance/models/longstaff_schwartz/lsm.py
imports: from typing import Callable
  import tensorflow.compat.v2
  from tf_quant_finance import types
  from tf_quant_finance import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _lsm_loop_cond(exercise_index, cashflow, option_values) and returns: unknown