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