code: def create_or_load_model(model, model_dir, session, name):
      """Create translation model and initialize or load parameters in session."""
      latest_ckpt = tf.train.latest_checkpoint(model_dir)
      if latest_ckpt:
          model = load_model(model, latest_ckpt, session, name)
      else:
          start_time = time.time()
          session.run(tf.global_variables_initializer())
          session.run(tf.tables_initializer())
          utils.print_out(
              "  created %s model with fresh parameters, time %.2fs"
              % (name, time.time() - start_time)
          )
  
      global_step = model.global_step.eval(session=session)
      return model, global_step
  
imports: from __future__ import print_function
  import collections
  import os
  import time
  import numpy
  import six
  import tensorflow
  from tensorflow.python.ops import lookup_ops
  from .utils import misc_utils, vocab_utils, iterator_utils
label_desc: Use image node_id 20 for calling a global function with example usage: create_or_load_model(model, model_dir, session, name) and returns: model,  global_step