You're reading the documentation for an older, but still supported, version of ROS 2. For information on the latest version, please have a look at Jazzy.
Managing nodes with managed lifecycles
This page lives now directly side-by-side with the code.
For more information about the lifecycle
package, refer to rosindex.