Call filterwarnings before imports with SpawnContext.Process

A module I use has started throwing a UserWarning when imported.

Fine on my main process because I can just filterwarnings main before I import it, but:

I use SpawnContext.Process and I can’t see an API for calling a method before imports in the spawned process, analogous to ProcessPoolExecutor’s init.

Any ideas?