def METHOD_NAME(custom_modules, module_name):
    module = CustomModules.get_module_path(module_name)
    with utils.tempdir() as custom_modules_dir:
        with zipfile.ZipFile(custom_modules, "r") as zipf:
            zipf.extractall(custom_modules_dir)
        # TODO: extract sys.path from _verta_config.py instead of walking
        for parent_dir, dirnames, filenames in os.walk(custom_modules_dir):
            if os.path.basename(module) in dirnames + filenames:
                retrieved_module = os.path.join(
                    parent_dir,
                    os.path.basename(module),
                )
                break
        else:
            raise ValueError("module not found in custom modules")
        if os.path.isfile(module):
            assert filecmp.cmp(module, retrieved_module)
        else:
            utils.assert_dirs_match(module, retrieved_module)