How to fix «from tensorflow.python.eager import monitoring» / «cannot import name 'monitoring'»?

The tensorflow.python.eager.monitoring module is really absent in TensorFlow 1.x:
github.com/tensorflow/tensorflow/tree/v1.13.1/tensorflow/python/eager/monitoring.py

It was added to the TensorFlow codebase at 2019-04-05 by the following commit: