Read python scripts from docs/_static/example directory for tutorial tests
Currently, there are tutorials under the docs/_static/example directory. There same code snippets are duplicated in the test/unit/tutorial_examples.py file. The tests should read the python script from the docs/_static/example directory. This reduces code redundancy.