code: def test_taps_error(self):
      # Test that an error rises if we use taps in outputs_info.
      self.assertRaises(
          RuntimeError,
          theano.scan_checkpoints,
          lambda: None,
          [],
          {"initial": self.A, "taps": [-2]},
      )
  
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 5 for calling the TestScanCheckpoint obj's underlying member method code with example usage: obj.test_taps_error() without return types