The best example of a part to whole analogy from the provided options is:
O pen: write : : books : library
In this analogy, a pen is a tool used to write, and similarly, books are a collection that makes up a library. This reflects the part to whole relationship effectively.