code: def test_restore_nodes_error_cases_trackable_ckpt_view_mismatch(self):
      class MyTrackable(base.Trackable):
          def __init__(self):
              self.a = module.Module()
  
      class MyTrackable2(base.Trackable):
          def __init__(self):
              self.a = variables.Variable(5.0)
  
          def _serialize_to_tensors(self):
              return {"a": variables.Variable(5.0)}
  
      root = MyTrackable()
      root_ckpt = trackable_utils.Checkpoint(root=root)
      root_save_path = root_ckpt.save(
          os.path.join(self.get_temp_dir(), "root_ckpt")
      )
  
      root2 = MyTrackable2()
      with self.assertRaisesRegex(
          ValueError,
          "Trackable <.*?> expects checkpointed values but checkpoint does not "
          "contain serialized tensors for node_id: 0.",
      ):
          restore.restore_nodes(root_save_path, {0: root2})
  
file_path: tensorflow/tensorflow/python/checkpoint/restore_test.py
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import restore
  from tensorflow.python.eager import test
  from tensorflow.python.module import module
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import autotrackable
  from tensorflow.python.trackable import base
  from tensorflow.python.training.saving import saveable_object
label_desc: Use image node_id 3 for calling the ExtractSaveablenameTest obj's underlying member method code with example usage: obj.test_restore_nodes_error_cases_trackable_ckpt_view_mismatch() and returns: dict