there is no error when importing tensorflow " import tensorflow as tf " is a right syntax,
try to import Model at top where M is Capital, " from tensorflow.keras import Model "
at last check your Python version as well tensorflow. latest version of python is 3.13.1 and tensorflow only provide support to 3.8-3.11,