@@ -0,0 +1,980 @@
+import os%0Afrom pathlib import Path%0A%0A%0Adef test_shared_package_is_independent():%0A    shared_package = Path(%22.%22) / %22rasa%22 / %22shared%22%0A%0A    for root, dirs, files in os.walk(shared_package):%0A        python_files = %5Bf for f in files if f.endswith(%22.py%22)%5D%0A%0A        for file in python_files:%0A            full_path = Path(root) / file%0A            lines = full_path.read_text().split(%22%5Cn%22)%0A            lines = %5Bline.strip() for line in lines%5D%0A%0A            imports = %5B%0A                line%0A                for line in lines%0A                if line.startswith(%22import %22) or line.startswith(%22from %22)%0A            %5D%0A            rasa_imports = %5Bline for line in imports if %22rasa%22 in line%5D%0A%0A            outside_rasa_imports = %5B%0A                import_line%0A                for import_line in rasa_imports%0A                if %22rasa.shared%22 not in import_line%0A            %5D%0A%0A            # The shared package is required to be independent of the rest of Rasa%0A            assert not outside_rasa_imports%0A

add independence test