code: def __init__(self, *args, **kwargs):
      raise ImportError(
          "`keras.optimizers.legacy` is not supported in Keras 3. When using "
          "`tf.keras`, to continue using a `tf.keras.optimizers.legacy` "
          "optimizer, you can install the `tf_keras` package (Keras 2) and "
          "set the environment variable `TF_USE_LEGACY_KERAS=True` to "
          "configure TensorFlow to use `tf_keras` when accessing `tf.keras`."
      )
  
file_path: keras/keras/optimizers/__init__.py
imports: from keras.api_export import keras_export
  from keras.optimizers.adadelta import Adadelta
  from keras.optimizers.adafactor import Adafactor
  from keras.optimizers.adagrad import Adagrad
  from keras.optimizers.adam import Adam
  from keras.optimizers.adamax import Adamax
  from keras.optimizers.adamw import AdamW
  from keras.optimizers.ftrl import Ftrl
  from keras.optimizers.lion import Lion
  from keras.optimizers.loss_scale_optimizer import LossScaleOptimizer
  from keras.optimizers.nadam import Nadam
  from keras.optimizers.optimizer import Optimizer
  from keras.optimizers.rmsprop import RMSprop
  from keras.optimizers.sgd import SGD
  from keras.saving import serialization_lib
label_desc: Use image node_id 1 to create a new LegacyOptimizerWarning object  with example: obj = LegacyOptimizerWarning()