I copied the code from the documentation and adjusted it to make it run on my computer

There was no recordset in the example on https://python-docx.readthedocs.org/en/latest/ so I created it. Do you want to include it?