def METHOD_NAME(self):
    """Test for restore based pretrained model loading."""
    source_model = MLP(feature_dim=self.feature_dim,
                       hidden_layer_size=self.hidden_layer_size)
    source_model.fit(self.dataset, nb_epoch=1000)
    dest_model = MLP(feature_dim=self.feature_dim,
                     hidden_layer_size=self.hidden_layer_size)
    dest_model.load_from_pretrained(source_model=source_model,
                                    assignment_map=None,
                                    value_map=None,
                                    model_dir=None,
                                    include_top=True)
    predictions = np.squeeze(dest_model.predict_on_batch(self.dataset.X))
    np.testing.assert_array_almost_equal(self.dataset.y,
                                         np.round(predictions))