code: def load_or_init_graph_for_training(session):
      """
      Load variables from checkpoint or initialize variables. By default this will
      try to load the best validating checkpoint, then try the last checkpoint,
      and finally initialize the weights from scratch. This can be overriden with
      the `--load_train` flag. See its documentation for more info.
      """
      if FLAGS.load_train == "auto":
          methods = ["best", "last", "init"]
      else:
          methods = [FLAGS.load_train]
      _load_or_init_impl(session, methods, allow_drop_layers=True)
  
file_path: DeepSpeech/training/deepspeech_training/util/checkpoints.py
imports: import sys
  import tensorflow
  import tensorflow.compat.v1
  from .flags import FLAGS
  from .logging import log_info, log_error, log_warn
label_desc: Use image node_id 6 for calling a global function with example usage: load_or_init_graph_for_training(session) without return types