code: def test_constant_cache_error(self):
      v = theano.tensor.constant(1)
      assert v.cached
      self.assertRaises(
          CachedConstantError, FunctionGraph, [], [v + 1], clone=False
      )
  
file_path: Theano/theano/gof/tests/test_fg.py
imports: from __future__ import absolute_import, print_function, division
  import os
  import pickle
  import unittest
  from nose.plugins.skip import SkipTest
  import theano
  from theano.compat import PY3
  from theano.gof import CachedConstantError, FunctionGraph
  from theano import tensor
label_desc: Use image node_id 1 for calling the TFunctionGraph obj's underlying member method code with example usage: obj.test_constant_cache_error() without return types