in device_info_pkg/device_info_pkg/device_info_node.py [0:0]
def main(args=None):
rclpy.init(args=args)
device_info_node = DeviceInfoNode()
rclpy.spin(device_info_node)
# Destroy the node explicitly
# (optional - otherwise it will be done automatically
# when the garbage collector destroys the node object)
device_info_node.destroy_node()
rclpy.shutdown()