code: def testPrepareSessionWithInsufficientReadyForLocalInitCheck(self):
      with ops.Graph().as_default():
          v = variable_v1.VariableV1(1, name="v")
          w = variable_v1.VariableV1(
              v,
              trainable=False,
              collections=[ops.GraphKeys.LOCAL_VARIABLES],
              name="w",
          )
          with self.cached_session():
              self.assertEqual(
                  False, variable_v1.is_variable_initialized(v).eval()
              )
              self.assertEqual(
                  False, variable_v1.is_variable_initialized(w).eval()
              )
          sm2 = session_manager.SessionManager(
              ready_op=variables.report_uninitialized_variables(),
              ready_for_local_init_op=None,
              local_init_op=w.initializer,
          )
      with self.assertRaisesRegex(
          RuntimeError, "Init operations did not make model ready.*"
      ):
          sm2.prepare_session("", init_op=None)
  
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 24 for calling the SessionManagerTest obj's underlying member method code with example usage: obj.testPrepareSessionWithInsufficientReadyForLocalInitCheck() without return types