code: def DISABLED_test_saving_include_optimizer_false(self):
      model = models.Sequential()
      model.add(layers.Dense(1))
      model.compile("adam", loss="mse")
      x, y = np.ones((10, 10)), np.ones((10, 1))
      model.fit(x, y)
      ref_output = model(x)
  
      temp_filepath = os.path.join(self.get_temp_dir(), "model.h5")
      legacy_h5_format.save_model_to_hdf5(
          model, temp_filepath, include_optimizer=False
      )
      loaded = legacy_h5_format.load_model_from_hdf5(temp_filepath)
      output = loaded(x)
  
      # Assert that optimizer does not exist in loaded model
      with self.assertRaises(AttributeError):
          _ = loaded.optimizer
  
      # Compare output
      self.assertAllClose(ref_output, output, atol=1e-5)
  
imports: import os
  import numpy
  import pytest
  import keras
  from keras import layers
  from keras import models
  from keras import ops
  from keras import testing
  from keras.legacy.saving import legacy_h5_format
  from keras.saving import object_registration
  from keras.saving import serialization_lib
label_desc: Use image node_id 6 for calling the LegacyH5WholeModelTest obj's underlying member method code with example usage: obj.DISABLED_test_saving_include_optimizer_false() without return types