code: def test_rand_initialisation(self):
      test_driver = get_initialised_driver(0, True)
      graph = test_driver.create_graph(test_driver.app, 1, True)
      with self.cached_session(graph=graph) as sess:
          test_tensor = graph.get_tensor_by_name(
              "G/conv_bn_selu/conv_/w:0"
          )
          with self.assertRaisesRegexp(
              tf.errors.FailedPreconditionError, "uninitialized value"
          ):
              sess.run(test_tensor)
          ModelRestorer(**vars(test_driver)).rand_init_model(None)
          sess.run(test_tensor)
          _ = sess.run(tf.global_variables())
  
imports: from __future__ import absolute_import, print_function
  import os
  import uuid
  import numpy
  import tensorflow
  from niftynet.engine.application_driver import ApplicationDriver
  from niftynet.engine.application_variables import global_vars_init_or_restore
  from niftynet.engine.handler_model import ModelRestorer
  from niftynet.io.misc_io import set_logger
  from niftynet.utilities.util_common import ParserNamespace
  from niftynet.engine.signal import SESS_FINISHED, SESS_STARTED
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 7 for calling the ApplicationDriverTest obj's underlying member method code with example usage: obj.test_rand_initialisation() without return types