def is_alive(self) -> bool:
        """
        Check if the application session is still active.

        Returns
        -------
        bool:
            True if the application is still running, False otherwise.
        """
        poll = self._process.poll()
        return poll is None

        Check if the application session is still active.

        Returns
        -------
        bool:
            True if the application is still running, False otherwise.
        
coremltools/models/ml_program/experimental/remote_device.py