While I can access and execute functions of a class, which reside in the same directory, I'm unable to invoke it from a subdirectory.

```
    from ..proxy import Proxy
    ImportError: attempted relative import with no known parent package

```

I've roamed the documentation for the [modules](https://docs.python.org/3/tutorial/modules.html), but could not make anything work.

This is my directory structure:

```
- root
  - code
    main.py
    proxy.py
    - tests
      mytest.py

```

The mytest.py should import the proxy.py.

```
from ..proxy import Proxy

```

Interestingly enough Visual Studio Code thinks the import statement is legit. Any clue anyone?

Btw, if I move the mytest.py one level up (same as the proxy.py) and adapt the import statement, it works smoothly.

(OS: Win11)