The issue was due to naming my Python file with an existing Python keyword (e.g., azure.py).
Solution: I renamed the file to something unique, avoiding reserved keywords and built-in module names. For example, instead of class.py, I renamed it to my_class.py, which resolved the error.
Thanks to everyone who tried to look into this !!