code: def run_full_eval(
      model_dir,
      infer_model,
      infer_sess,
      eval_model,
      eval_sess,
      hparams,
      summary_writer,
      sample_src_data,
      sample_tgt_data,
      avg_ckpts=False,
  ):
      """Wrapper for running sample_decode, internal_eval and external_eval.
  
      Args:
        model_dir: Directory from which to load models from.
        infer_model: Inference model for which to compute perplexities.
        infer_sess: Inference TensorFlow session.
        eval_model: Evaluation model for which to compute perplexities.
        eval_sess: Evaluation TensorFlow session.
        hparams: Model hyper-parameters.
        summary_writer: Summary writer for logging metrics to TensorBoard.
        sample_src_data: sample of source data for sample decoding.
        sample_tgt_data: sample of target data for sample decoding.
        avg_ckpts: Whether to compute average external evaluation scores.
      Returns:
        Triple containing results summary, global step Tensorflow Variable and
        metrics in this order.
      """
      run_sample_decode(
          infer_model,
          infer_sess,
          model_dir,
          hparams,
          summary_writer,
          sample_src_data,
          sample_tgt_data,
      )
      return run_internal_and_external_eval(
          model_dir,
          infer_model,
          infer_sess,
          eval_model,
          eval_sess,
          hparams,
          summary_writer,
          avg_ckpts,
      )
  
imports: from __future__ import print_function
  import math
  import os
  import random
  import time
  import tensorflow
  from .None import inference, gnmt_model
  from .gnmt import attention_model, model
  from .gnmt import model_helper
  from .gnmt.utils import nmt_utils, misc_utils
label_desc: Use image node_id 6 for calling a global function with example usage: run_full_eval(model_dir, infer_model, infer_sess, eval_model, eval_sess, hparams, summary_writer, sample_src_data, sample_tgt_data, avg_ckpts) and returns: run_internal_and_external_eval