def METHOD_NAME(self, node_id: int) -> str:
    """
    Gets the name of the device.
    :param node_id: The device ID.
    :return: The name of the device.
    """
    return self.topology[node_id].get('name', 'Node%d' % node_id)