def METHOD_NAME(self, cfg):
    if self.cfg.precompute_mask_indices or self.cfg.tpu:
        assert (
            cfg.inferred_w2v_config is not None
        ), "inferred_w2v_config must be set"
        return OmegaConf.to_container(
            cfg.inferred_w2v_config, resolve=True, enum_to_str=True
        )
    else:
        return {}