class_docstr: Tests function periodically.
class_docstr_tok: ["Tests","function","periodically","."]
docstr: Tests that the function is never called if period == None.
docstr_tok: ["Tests","that","the","function","is","never","called","if","period","==","None","."]
code: def testPeriodNone(self):
      """Tests that the function is never called if period == None."""
      target = tf.Variable(0)
  
      periodic_update = periodic_ops.periodically(
          body=lambda: target.assign_add(1).op, period=None
      )
  
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          desired_value = 0
          for _ in range(1, 11):
              _, result = sess.run([periodic_update, target])
              self.assertEqual(desired_value, result)
  
file_path: trfl/trfl/periodic_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
  from trfl import periodic_ops
label_desc: Use image node_id 3 for calling the PeriodicallyTest obj's underlying member method code with example usage: obj.testPeriodNone() without return types