Doing import std_msgs.msg.String or from std_msgs.msg import String imports a generated Python class.
The typesupport for the String type exists on a metaclass: String.__class__._TYPE_SUPPORT.
This value starts as None.
It later becomes a pycapsule (with no name) when someone calls String.__class__.__import_type_support__().
This is done in rclpy by check_for_type_support(msg_type).
It's called by the Node in create_...().
Afterwards inside C code the function rclpy_common_get_type_support(pymsg_type). blindly assumes _TYPE_SUPPORT is a pycapsule.