docstr: Tests that the loop will stop countdown at zero and not before.
docstr_tok: ["Tests","that","the","loop","will","stop","countdown","at","zero","and","not","before","."]
code: def test_loop_condition(self):
      """Tests that the loop will stop countdown at zero and not before."""
      self.assertTrue(lsm.lsm_loop_cond(1, None))
      self.assertFalse(lsm.lsm_loop_cond(0, None))
  
file_path: tf-quant-finance/tf_quant_finance/experimental/lsm_algorithm/lsm_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tf_quant_finance.experimental.lsm_algorithm import lsm
  from tf_quant_finance.experimental.lsm_algorithm import payoff
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling the LsmTest obj's underlying member method code with example usage: obj.test_loop_condition() without return types