Ask ChatGPT to write a Python function which can analyse another Python function supplied as an argument and return a boolean value which indicates whether the function under analysis can execute an infinite loop.