code: def serialize(learning_rate_schedule):
      """Serializes a `LearningRateSchedule` into a JSON-compatible dict.
  
      Args:
          learning_rate_schedule: The `LearningRateSchedule` object to serialize.
  
      Returns:
          A JSON-serializable dict representing the object's config.
  
      Example:
  
      >>> lr_schedule = keras.optimizers.schedules.ExponentialDecay(
      ...     0.1, decay_steps=100000, decay_rate=0.96, staircase=True)
      >>> keras.optimizers.schedules.serialize(lr_schedule)
      {'module': 'keras.optimizers.schedules',
      'class_name': 'ExponentialDecay', 'config': {...},
      'registered_name': None}
      """
      return serialization_lib.serialize_keras_object(
          learning_rate_schedule
      )
  
imports: import math
  from keras import ops
  from keras.api_export import keras_export
  from keras.saving import serialization_lib
label_desc: Use image node_id 1 for calling a global function with example usage: serialize(learning_rate_schedule) and returns: serialization_lib