The finder may set this attribute to an object containing additional, module-specific data to use when loading the module. Otherwise it should be set to None.
importlib.machinery/ModuleSpec.loader_state
ModuleSpec.loader_state