def METHOD_NAME(self, module, name):
    renamed_module = module
    if module.startswith("autogluon.text.automm"):
        renamed_module = module.replace("autogluon.text.automm", "autogluon.multimodal")
    return super(CustomUnpickler, self).METHOD_NAME(renamed_module, name)