def __init__(self, name, realm=None, address=None, node_monitor=None,
                 monitoring_groups=None, **kwargs):
        self.name = name
        self.realm = realm
        self.address = address or name
        self.node_monitor = node_monitor
        self.monitoring_groups = WeakValueDictionary()
        self._tasks = []
        if monitoring_groups:
            for group in monitoring_groups:
                if not isinstance(group, MonitoringGroup):
                    try:
                        group = MonitoringGroup.registry[group]
                    except __HOLE__:
                        logger.error("Unable to find MonitoringGroup '%s' "
                                     "in registry, skipping.", group)
                group.add_node(self)

        super(Node, self).__init__(name, **kwargs)
dataset/ETHPy150Open cloudtools/nymms/nymms/resources.py/Node.__init__