Tensorflow won't let pytorch import
Related to https://github.com/tensorflow/tensorflow/issues/60109
May be you want to follow-up on that Issue? Yeah, it's a duplicate of #60109 @RickSanchezStoic,
This is a duplicate of the issue [#60109](https://github.com/tensorflow/tensorflow/issues/60109). Could you please close this issue, since it is already being tracked there? Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. Closing duplicate issue, no need to wait for stale bot 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/60389">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/60389">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

2.12.0

### Custom Code

Yes

### OS Platform and Distribution

Docker image ubuntu:20.04 and above

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

Tensorflow 2.12.0 won't let torch import, causes some sort of deadlock, if tensorflow is imported first

### Standalone code to reproduce the issue

```shell
Code to reproduce the error:

docker run --rm -it ubuntu:22.04
// once inside
apt-get update && apt-get install python3
apt-get install pip
pip install tensorflow -y
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118 -y
python3
import tensorflow
import torch
```
Note: the issue will persist even if you install torch-cpu, also on any Ubuntu:20.04 and above
```


### Relevant log output

_No response_</details>