├── apps
│ ├── package1
│ ├── directory 1
│ │ ├── demo1.py
│ │ └── demo2.py
└ └── test1.py
└ └── test2.py (def function2)
here i need to access function2 in test2.py, and use it in demo2.py
it will look like in demo.py file as below
from test2 import function2
and got an following error ImportError: cannot import name 'function2' from 'test2'