As we are moving to pytest for testing, there is no need to do if __name__ == "__main__":, run_tests() and doctest.testmod(). These parts will be automatically removed when collecting clean data.
The structure of the docstring in each clean sample should be validated using rule-based methods. The script will be uploaded soon. GitHub Actions may include this accordingly.