ROS2 equivalent of 'rosbag' Python package

The rosbag Python module is part of ROS1 and not available in ROS2 - the direct replacement is called ros2bag, but you might need to adjust your code to use it.