code: def test_temps(self):
      TemplateTransform.temp_name_counter = 0
      F = self.fragment(
          """
              TMP
              x = TMP
          """
      )
      T = F.substitute(temps=["TMP"])
      s = T.body.stats
      self.assertTrue(isinstance(s[0].expr, TempRefNode))
      self.assertTrue(isinstance(s[1].rhs, TempRefNode))
      self.assertTrue(s[0].expr.handle is s[1].rhs.handle)
  
file_path: catboost/contrib/tools/cython/Cython/Compiler/Tests/TestTreeFragment.py
imports: from Cython.TestUtils import CythonTest
  from Cython.Compiler.TreeFragment import *
  from Cython.Compiler.Nodes import *
  from Cython.Compiler.UtilNodes import *
  import Cython.Compiler.Naming
label_desc: Use image node_id 7 for calling the TestTreeFragments obj's underlying member method code with example usage: obj.test_temps() without return types