tf.keras.models.model_from_json() missing a safe_mode parameter
@epetrovski,
Thank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). 




Could you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).
To know more please refer:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!
 Moved to https://github.com/keras-team/tf-keras/issues/44 Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61211">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61211">No</a>
 Hi, I had the same issue initially, and I think it had to do with the tensorflow version. I had version 2.15.0 installed in another laptop and 2.16.1 was installed in my pc. The 2.15.0 version didn't give me this error and ran fine, but the 2.16.1 version did. I also had Python 3.10 installed in my laptop and 3.11 installed in my pc, so it seems like Python version doesn't matter. To fix this, this is what I did:

1. Checked my tensorflow version (In my terminal, I ran: py -c 'import tensorflow as tf; print(tf.__version__)'
2. Un-installed tensorflow, since I saw it was version 2.16.1 (pip uninstall tensorflow)
3. Re-installed tensorflow version 2.15.0 (pip install tensorflow==2.15.0 )
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

tf 2.13

### Custom code

No

### OS platform and distribution

Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.11

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When loading a model with a lambda layer from a json model config, TensorFlow provides the following error:

`
ValueError: Requested the deserialization of a Lambda layer with a Python 'lambda' inside it. This carries a potential risk of arbitrary code execution and thus it is disallowed by default. If you trust the source of the saved model, you can pass 
'safe_mode=False' to the loading function in order to allow Lambda layer loading.
`

However `tf.keras.models.model_from_json()` does not have a `safe_mode` parameter. So there does not seem to be a way to load models with lamda layers using a json config. This issue does not appear in TensorFlow 2.12



### Standalone code to reproduce the issue

```shell
from tensorflow.keras import Model
from tensorflow.keras.layers import Dense, Input, Lambda

inputs = Input(shape=(1,))
x = Lambda(lambda x: x*2)(inputs)
out = Dense(1)(x)
model = Model(inputs=inputs,outputs=out)

model_config = model.to_json()
tf.keras.models.model_from_json(model_config)
```


### Relevant log output

_No response_