If you are not using the code node and want to run code from somewhere else or a local project folder you would need to use the execute command node assuming the Docker image you are using has everything you need installed on it. When running a command we will return stderr /stdout so you would need to parse that response for using any returned data.
It may be worth seeing if the code does what you need before going down the execute command node route though.