class_docstr: Base class of solver.
class_docstr_tok: ["Base","class","of","solver","."]
docstr: using vars_average to restotre vars
docstr_tok: ["using","vars_average","to","restotre","vars"]
code: def make_restore_average_vars_dict(self, global_step=None):
      """using vars_average to restotre vars"""
      model_avg_conf = self.config["solver"]["model_average"]
      var_avg_decay = model_avg_conf["var_avg_decay"]
  
      var_restore_dict = {}
      variable_averages = self.get_var_avg_ema(
          var_avg_decay, global_step
      )
      for var in tf.global_variables():
          if var in tf.trainable_variables():
              name = variable_averages.average_name(var)
          else:
              name = var.op.name
          var_restore_dict[name] = var
      return var_restore_dict
  
imports: import abc
  import math
  import delta.compat
  import tensorflow_addons
  from absl import logging
  from delta import utils
  from delta.utils import optimizer
  from delta.utils.register import registers
label_desc: Use image node_id 12 for calling the Solver obj's underlying member method code with example usage: obj.make_restore_average_vars_dict(global_step) and returns: var_restore_dict