code: def test_check_loop_condition(self) -> None:
      var = "foo"
      _check_loop_condition(var, None)
      _check_loop_condition(var, 100)
      with self.assertRaisesRegex(
          ValueError, f"Invalid value provided for {var}"
      ):
          _check_loop_condition(var, -1)
  
imports: import unittest
  from torchtnt.framework.state import _check_loop_condition, PhaseState
label_desc: Use image node_id 1 for calling the StateTest obj's underlying member method code with example usage: obj.test_check_loop_condition() without return types