This is the final dependency from feature_column to Keras.
The copied functions are trimmed down version since it doesn't have access to Keras global custom object registration, which I don't think are used by feature column. The custom object scope will still work.
PiperOrigin-RevId: 315621765
Change-Id: I2ae22af83d625c8e55c7fe21b42194bbdbfded23