code: def test_taps_error(self):
      # Test that an error rises if we use taps in outputs_info.
      with pytest.raises(RuntimeError):
          scan_checkpoints(
              lambda: None, [], {"initial": self.A, "taps": [-2]}
          )
  
file_path: pytensor/tests/scan/test_checkpoints.py
imports: import numpy
  import pytest
  from pytensor.compile.function import function
  from pytensor.gradient import grad
  from pytensor.scan.basic import scan
  from pytensor.scan.checkpoints import scan_checkpoints
  from pytensor.tensor.basic import ones_like
  from pytensor.tensor.type import iscalar, vector
label_desc: Use image node_id 4 for calling the TestScanCheckpoint obj's underlying member method code with example usage: obj.test_taps_error() without return types