This demo explained how to use the python scripting for making a connection with MySQL database and do CRUD operations on that.
Scenario: You have at least 3 mysql nodes (or TiDB nodes as tested here) and you randomly reboot them to simulate downtime. It's confusing there's lots of python ...