def is_connected_to(self, peer_id):
        for ep in self.endpoints:
            if ep.get_peer()[1] == peer_id:
                return True
        return False
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actor/actorport.py/OutPort.is_connected_to/original