Example scripts for the ROS 2 basics training are available in the following GitHub repository:
ipa-may/ros2_i_training_example_scripts