code: def tfadd_with_ckpt(out_dir):
      x = array_ops.placeholder(dtypes.int32, name="x_hold")
      y = variable_v1.VariableV1(
          constant_op.constant([0]), name="y_saved"
      )
      math_ops.add(x, y, name="x_y_sum")
  
      init_op = variables.global_variables_initializer()
      saver = saver_lib.Saver(write_version=saver_pb2.SaverDef.V1)
      with session.Session() as sess:
          sess.run(init_op)
          sess.run(y.assign(y + 42))
          # Without the checkpoint, the variable won't be set to 42.
          ckpt = os.path.join(
              out_dir, "test_graph_tfadd_with_ckpt.ckpt"
          )
          saver.save(sess, ckpt)
  
imports: import argparse
  import os
  import sys
  from absl import app
  import six
  from six.moves import range
  from tensorflow.core.protobuf import saver_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import control_flow_assert
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.training import saver
label_desc: Use image node_id 2 for calling a global function with example usage: tfadd_with_ckpt(out_dir) without return types