docstr: Test if directory is created on model save.
docstr_tok: ["Test","if","directory","is","created","on","model","save","."]
code: def DISABLED_test_directory_creation_on_save(self):
      """Test if directory is created on model save."""
      model = get_sequential_model(keras)
      nested_dirpath = os.path.join(
          self.get_temp_dir(), "dir1", "dir2", "dir3"
      )
      filepath = os.path.join(nested_dirpath, "model.h5")
      self.assertFalse(os.path.exists(nested_dirpath))
      legacy_h5_format.save_model_to_hdf5(model, filepath)
      self.assertTrue(os.path.exists(nested_dirpath))
      loaded_model = legacy_h5_format.load_model_from_hdf5(filepath)
      self.assertEqual(model.to_json(), loaded_model.to_json())
  
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 DirectoryCreationTest obj's underlying member method code with example usage: obj.DISABLED_test_directory_creation_on_save() without return types