The Cyberiad

..

https://en.wikipedia.org/wiki/The_Cyberiad

Book by Stanisław Lem, released in 1965.