Visual studio code docker container in container help in simulating the docker setup in VS code and is helpful in debugging the python code.
Some times it may result in error that packages are not properly loaded. In such cases make sure that the correct python environment is loaded. The environment should be the containers environment.

Change the editor to correct local editor.