code: def get_on_read_saveable(var, primary_var, name):
      """Return saveables for ON_READ variable."""
  
      # We use a callable so that we don't have to evaluate this expression
      # in the case where we are trying to restore instead of save.
      def tensor():
          return (
              var._get_cross_replica()
          )  # pylint: disable=protected-access
  
      spec = saveable_object.SaveSpec(
          tensor=tensor,
          slice_spec="",
          name=name,
          dtype=var.dtype,
          device=primary_var.device,
      )
  
      return tensor, [spec]
  
imports: from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import reduce_util
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.saved_model import save_context
  from tensorflow.python.saved_model import save_options
  from tensorflow.python.training.saving import saveable_object
label_desc: Use image node_id 4 for calling a global function with example usage: get_on_read_saveable(var, primary_var, name) and returns: tensor,  list, var