<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_for_lime(self, pattern):
 """ Check to see if LiME has loaded on the remote system :type pattern: str :param pattern: pattern to check output against :type listen_port: int :param listen_port: port LiME is listening for connections on """

        check = self.commands.lime_check.value
        lime_loaded = False
        result = self.shell.execute(check)
        stdout = self.shell.decode(result['stdout'])
        connections = self.net_parser.parse(stdout)

        for conn in connections:
            local_addr, remote_addr = conn
            if local_addr == pattern:
                lime_loaded = True
                break

        return lime_loaded