<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isOptimizedForIPTV(self, wifiInterfaceId=1, timeout=1):
 """Return if the Wifi interface is optimized for IP TV :param int wifiInterfaceId: the id of the Wifi interface :param float timeout: the timeout to wait for the action to be executed :return: if the Wifi interface is optimized for IP TV :rtype: bool .. seealso:: :meth:`~simpletr64.actions.Fritz.setOptimizedForIPTV` """

        namespace = Fritz.getServiceType("isOptimizedForIPTV") + str(wifiInterfaceId)
        uri = self.getControlURL(namespace)

        results = self.execute(uri, namespace, "X_AVM-DE_GetIPTVOptimized", timeout=timeout)

        return bool(int(results["NewX_AVM-DE_IPTVoptimize"]))