Tensorflow.keras.layers

Hi,
I encounter this error “tensorflow.keras.layers” could not be resolved Pylance
Can anyone please suggest a solution to fix this?

Hi @Ahmed_Asiri, I am able to import layers from keras without any error in colab with tensorflow 2.15. Could please try by importing layers from keras instead of tensorflow.keras.

import keras
from keras import layers

Thank You.