code: def setUp(self):
      self.k = T.iscalar("k")
      self.A = T.vector("A")
      result, _ = theano.scan(
          fn=lambda prior_result, A: prior_result * A,
          outputs_info=T.ones_like(self.A),
          non_sequences=self.A,
          n_steps=self.k,
      )
      result_check, _ = theano.scan_checkpoints(
          fn=lambda prior_result, A: prior_result * A,
          outputs_info=T.ones_like(self.A),
          non_sequences=self.A,
          n_steps=self.k,
          save_every_N=100,
      )
      self.result = result[-1]
      self.result_check = result_check[-1]
      self.grad_A = T.grad(self.result.sum(), self.A)
      self.grad_A_check = T.grad(self.result_check.sum(), self.A)
  
file_path: Theano/theano/scan_module/tests/test_scan_checkpoints.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import unittest
  import theano
  import theano.tensor
label_desc: Use image node_id 1 for calling the TestScanCheckpoint obj's underlying member method code with example usage: obj.setUp() without return types