code: def _serialize_to_tensors(self):
      def _get_and_increment_counter():
          value = self.read_counter.read_value()
          self.read_counter.assign_add(1)
          return value
  
      return {
          "read_counter": tensor_callable.Callable(
              _get_and_increment_counter,
              self.read_counter.dtype,
              self.read_counter.device,
          )
      }
  
file_path: tensorflow-upstream/tensorflow/python/checkpoint/tensor_callable_test.py
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import tensor_callable
  from tensorflow.python.eager import test
  from tensorflow.python.ops import variables
  from tensorflow.python.saved_model import save
  from tensorflow.python.trackable import base
label_desc: Use image node_id 2 for calling the IncrementWhenSave obj's underlying member method code with example usage: obj._serialize_to_tensors() and returns: dict, value