code: def test_constant(self):
      # Make sure the value we will use for the test aren't yet in the cache.
      r1 = tensor.constant(1.5)
      del tensor.constant_cache[r1.signature()]
      r1 = tensor.constant(1.6)
      del tensor.constant_cache[r1.signature()]
  
      # Get counter value
      autoname_id = next(Variable.__count__)
      Variable.__count__ = count(autoname_id)
      r1 = tensor.constant(1.5)
      r2 = tensor.constant(1.5)
      assert r1.auto_name == "auto_" + str(autoname_id), (
          r1.auto_name,
          "auto_" + str(autoname_id),
      )
      # We reuse the same variable
      assert r2.auto_name == "auto_" + str(autoname_id), (
          r2.auto_name,
          "auto_" + str(autoname_id),
      )
      assert r1 is r2
  
      r3 = tensor.constant(1.6)
      assert r3.auto_name == "auto_" + str(autoname_id + 1)
  
imports: from __future__ import absolute_import, print_function, division
  from itertools import count
  import pickle
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from theano import sparse, shared, tensor
  from theano.gof.graph import Apply, as_string, clone, general_toposort, inputs, io_toposort, is_same_graph, Variable
  from theano.gof.op import Op
  from theano.gof.type import Type
label_desc: Use image node_id 2 for calling the TestAutoName obj's underlying member method code with example usage: obj.test_constant() without return types