code: def test_model_with_dict_output_can_be_loaded(self):
      self._export(self._model_with_dict_output, self._saved_model_path)
      self.assertTrue(
          tf.saved_model.contains_saved_model(self._saved_model_path)
      )
      restored_model = tf.keras.models.load_model(
          self._saved_model_path
      )
      self.assertIsInstance(restored_model, tf.keras.Model)
      self._model_with_dict_output.use_legacy_config = True
      restored_model.use_legacy_config = (
          True  # Old Keras serialization format
      )
      self.assertDictEqual(
          self._model_with_dict_output.get_config(),
          restored_model.get_config(),
      )
  
file_path: ranking/tensorflow_ranking/python/keras/saved_model_test.py
imports: import tensorflow
  from google.protobuf import text_format
  from tensorflow_ranking.python.keras import saved_model
  from tensorflow_serving.apis import input_pb2
label_desc: Use image node_id 7 for calling the SignaturesTest obj's underlying member method code with example usage: obj.test_model_with_dict_output_can_be_loaded() without return types