With the full transition to Keras 3, the tf.keras.optimizers.legacy.Adam (and similar) imports are no longer necessary and, in some environments, may cause dependency issues.
I propose globally replacing imports of tf.keras.optimizers.legacy.* with the standard tf.keras.optimizers.* (e.g., legacy.Adam -> Adam). This aligns DeepChem with the current Keras 3 API standard and should resolve compatibility hurdles.