code: def update_model_config_to_support_adapter(model_cfg, current_cfg):
      with open_dict(model_cfg):
          # Override prediction logging in config
          model_cfg.log_prediction = current_cfg.model.get(
              "log_prediction", False
          )
  
          # Update encoder adapter compatible config
          adapter_metadata = adapter_mixins.get_registered_adapter(
              model_cfg.encoder._target_
          )
          if adapter_metadata is not None:
              model_cfg.encoder._target_ = (
                  adapter_metadata.adapter_class_path
              )
  
file_path: NeMo/examples/asr/asr_adapters/train_asr_adapter.py
imports: import os
  from dataclasses import is_dataclass
  import pytorch_lightning
  from omegaconf import DictConfig, OmegaConf, open_dict
  from nemo.collections.asr.models import ASRModel
  from nemo.core import adapter_mixins
  from nemo.core.config import hydra_runner
  from nemo.utils import logging
  from nemo.utils.exp_manager import clean_exp_ckpt, exp_manager
label_desc: Use image node_id 1 for calling a global function with example usage: update_model_config_to_support_adapter(model_cfg, current_cfg) without return types