Return a module spec based on various loader methods.
importlib.util/spec_from_loader
spec_from_loader