code: def test_trace_save_and_restore_concrete(self):
      t = MyTrackable()
      t._serialize_to_tensors = def_function.function(
          t._serialize_to_tensors
      ).get_concrete_function()
      restored_tensor_spec = t._serialize_to_tensors.structured_outputs
      # The wrapped tf.function doesn't matter.
      t._restore_from_tensors = def_function.function(
          lambda x: x
      ).get_concrete_function(restored_tensor_spec)
  
      save_fn, restore_fn = tracing_utils.trace_save_and_restore(t)
      self.assertIs(t._serialize_to_tensors, save_fn)
      self.assertIs(t._restore_from_tensors, restore_fn)
  
file_path: tensorflow/tensorflow/python/saved_model/tracing_utils_test.py
imports: from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.saved_model import tracing_utils
  from tensorflow.python.trackable import base
label_desc: Use image node_id 2 for calling the TracingUtilsTest obj's underlying member method code with example usage: obj.test_trace_save_and_restore_concrete() without return types