"""Service module.Register or access interfaces that may be provided, mocked or missing, but should alwaysbehave neatly on import."""from._utilimportErrorModuleas_ErrorModulefrom.mpiimportMPIServiceas_MPIServicefrom.mpilockimportMPILockModuleas_MPILockModuleMPI=_MPIService()"""MPI service."""MPILock=_MPILockModule("mpilock")"""MPILock service."""from.poolimportJobPoolas_JobPool# noqa E402 # needs to be imported after MPIServicefrom.poolimportWorkflowError,pool_cache# noqa E402 # needs to be imported after MPIServiceJobPool=_JobPool"""JobPool service."""def__getattr__(attr):return_ErrorModule(f"{attr} is not a registered service.")