def getNetworkKey(self, name):
        for netkey in self.networks:
            if netkey.name == name:
                return netkey
        raise NodeError('Could not find network key with the supplied name.')
dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py/Node.getNetworkKey/original