@classmethod
    def shadow(cls, module_name, deferred, **attributes):
        module = sys.modules[module_name]
        sys.modules[module_name] = cls(module, deferred, **attributes)
Replace *module_name* in ``sys.modules`` with a deferred clone.
dataset/ETHPy150Open jek/flatland/flatland/util/deferred.py/deferred_module.shadow