PyCharm cannot resolve Keras and Bidirectional and TimeDistributed
Hi @lrstolk ,

I have replicated the reported behaviour on Colab and attached screenshot below.

https://screenshot.googleplex.com/4hm4Zj6zXvEvasR

You can use the below code to get the Tensorflow version.

`!python -c "import tensorflow as tf; print(tf.__version__)"
`
 > Hi @lrstolk ,
> 
> I have replicated the reported behaviour on Colab and attached screenshot below.
> 
> https://screenshot.googleplex.com/4hm4Zj6zXvEvasR
> 
> You can use the below code to get the Tensorflow version.
> 
> `!python -c "import tensorflow as tf; print(tf.__version__)" `

Thanks for the fast reply @SuryanarayanaY !

I tried to open your link, but sadly cannot open it, it brings me to a single sign on page. 

When I try your code, it does not recognize the exclamation mark in the PyTorch terminal or Anaconda Promt. When I use your code in a jupyter notebook, it gives the same error as I mentioned earlier.
If I ask pip show tensorflow, it gives me: Version: 2.10.1 

**EDIT**
I reinstalled my entire env, the Anaconda shell gives me: 2.10.0 
The powerschell is able to find keras tho: 
>python -c "import tensorflow.keras as k; print(k.__version__)"
>2.10.0

On my old laptop, PyCharm is able to find keras, Bidirectional and TimeDistributed, 
I run the same environment with Tensorflow==2.3.0 @SuryanarayanaY I cannot see your screenshot.  Hi @lrstolk ,

I am attaching a colab [gist](https://colab.research.google.com/gist/SuryanarayanaY/90a0471c32f0650f2e2f0a4fb8045bec/60617.ipynb) for your reference. You please execute it and observe the behaviour.

The problem is related to auto completion of path. You can still use the functionalities without problem except auto path resolution. Now Keras is available as stand alone package which might be reason that there is no problem with keras path resolution.

Thanks
 > Hi @lrstolk ,
> 
> 
> 
> I am attaching a colab [gist](https://colab.research.google.com/gist/SuryanarayanaY/90a0471c32f0650f2e2f0a4fb8045bec/60617.ipynb) for your reference. You please execute it and observe the behaviour.
> 
> 
> 
> The problem is related to auto completion of path. You can still use the functionalities without problem except auto path resolution. Now Keras is available as stand alone package which might be reason that there is no problem with keras path resolution.
> 
> 
> 
> Thanks
> 
> 

I see, thankyou! 
tf-nightly is not an option for me. I'm on Windows Native, so I need v2.10 or lower. 
Is there a way to fix the auto path resolution? Like changing the `__init__.py` @lrstolk ,

Now starting from 2.12v onwards Keras is a standalone package and there is no need to import tensorflow separately for this.I think this is the reason for the reported behaviour.Please try using keras as standalone package only. 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. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. 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/60617">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/60617">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.10.0=mkl_py38ha5c4042_0

### Custom Code

Yes

### OS Platform and Distribution

Windows 10.0.22621 Build 22621

### Mobile device

_No response_

### Python version

3.8.16

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

cudatoolkit=11.2 cudnn=8.1.0

### GPU model and memory

NVIDIA GeForce RTX 2060 - 6 GB GDDR6

### Current Behaviour?

I tried to `import` `tensorflow.keras` but `PyCharm` could not resolve it. So I tried to use `tensorflow.python.keras` (which is not advised), I could import a few modules but not `Bidirectional `or `TimeDistributed`. I have already deleted my environment and builed it from scratch with installing with pip and conda. 

![PyCharm](https://github.com/tensorflow/tensorflow/assets/35999180/b085e14b-6f20-49e4-afb8-494dfc71b622)

I tried the following issues, but sadly no succes: 
https://github.com/tensorflow/tensorflow/issues/54180 
https://github.com/microsoft/pylance-release/issues/1066 

### Another issue while trying to get tensorflow.version 
I tried to run `python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"`, but threw the following: 
> Traceback (most recent call last):
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\requests\compat.py", line 11, in <module>
>     import chardet
> ModuleNotFoundError: No module named 'chardet'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\__init__.py", line 52, in <module>
>     from ._api.v2 import compat
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module>
>     from . import v1
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 31, in <module>
>     from . import compat
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 38, in <module>
>     from . import v2
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v2\__init__.py", line 28, in <module>
>     from tensorflow._api.v2.compat.v2 import __internal__
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\__init__.py", line 33, in <module>
>     from . import compat
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\compat\__init__.py", line 38, in <module>
>     from . import v2
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\compat\v2\__init__.py", line 37, in <module>
>     from tensorflow._api.v2.compat.v2 import distribute
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\distribute\__init__.py", line 182, in <module>
>     from . import experimental
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\distribute\experimental\__init__.py", line 10, in <module>
>     from . import rpc
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\_api\v2\compat\v2\distribute\experimental\rpc\__init__.py", line 8, in <module>
>     from tensorflow.python.distribute.experimental.rpc.rpc_ops import Client
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\python\distribute\experimental\__init__.py", line 22, in <module>
>     from tensorflow.python.distribute.failure_handling import failure_handling
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\python\distribute\failure_handling\failure_handling.py", line 36, in <module>
>     from tensorflow.python.distribute.failure_handling import failure_handling_util
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\tensorflow\python\distribute\failure_handling\failure_handling_util.py", line 19, in <module>
>     import requests
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\requests\__init__.py", line 45, in <module>
>     from .exceptions import RequestsDependencyWarning
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\requests\exceptions.py", line 9, in <module>
>     from .compat import JSONDecodeError as CompatJSONDecodeError
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\requests\compat.py", line 13, in <module>
>     import charset_normalizer as chardet
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\charset_normalizer\__init__.py", line 23, in <module>
>     from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
>   File "C:\Users\lilon\miniconda3\envs\TETB\lib\site-packages\charset_normalizer\api.py", line 10, in <module>
>     from charset_normalizer.md import mess_ratio
> AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)

### Standalone code to reproduce the issue

```shell
from tensorflow.keras.layers import Bidirectional, TimeDistributed
from tensorflow.python.keras.layers import Bidirectional, TimeDistributed
from keras.layers import Bidirectional, TimeDistributed
```


### Relevant log output

_No response_</details>