code: def _check_reloading_model(self, ref_input, model, tf_keras_model):
      # Whole model file
      ref_output = tf_keras_model(ref_input)
      temp_filepath = os.path.join(self.get_temp_dir(), "model.h5")
      tf_keras_model.save(temp_filepath)
      loaded = legacy_h5_format.load_model_from_hdf5(temp_filepath)
      output = loaded(ref_input)
      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 1 for calling the LegacyH5BackwardsCompatTest obj's underlying member method code with example usage: obj._check_reloading_model(ref_input, model, tf_keras_model) without return types