code: def testPrepareSessionWithCyclicInitializer(self):
      # Regression test. Previously Variable._build_initializer_expr would enter
      # into an infinite recursion when the variable's initial_value involved
      # cyclic dependencies.
      with ops.Graph().as_default():
          i = while_loop.while_loop(
              lambda i: i < 1, lambda i: i + 1, [0]
          )
          v = variable_v1.VariableV1(array_ops.identity(i), name="v")
          with self.cached_session():
              self.assertEqual(
                  False, variable_v1.is_variable_initialized(v).eval()
              )
          sm = session_manager.SessionManager(
              ready_op=variables.report_uninitialized_variables()
          )
          sess = sm.prepare_session("", init_op=v.initializer)
          self.assertEqual(1, sess.run(v))
          self.assertEqual(
              True,
              variable_v1.is_variable_initialized(
                  sess.graph.get_tensor_by_name("v:0")
              ).eval(session=sess),
          )
  
imports: import os
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import resource_variables_toggle
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
  from tensorflow.python.training import server_lib
  from tensorflow.python.training import session_manager
label_desc: Use image node_id 20 for calling the SessionManagerTest obj's underlying member method code with example usage: obj.testPrepareSessionWithCyclicInitializer() without return types